RosettaCodeData/Task/Exponentiation-order/JavaScript/exponentiation-order.js

6 lines
166 B
JavaScript
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
console.log(5 ** 3 ** 2);
console.log(5 ** (3 ** 2));
console.log((5 ** 3) ** 2);
console.log(Math.pow(Math.pow(5, 3), 2));
console.log(Math.pow(5, Math.pow(3, 2)));