powers in javascript code example
Example 1: javascript squared
//squared numbers
Math.pow(x1, 2)
x1 * x1
x1 ** 2 // ES6 syntax
Example 2: exponent javascript
Math.pow(base, exposant);
// if (math.pow(4,3)
//do (4*4*4)
//output:64