how to write a power of 2 in javsacript code example
Example: javascript squared
//squared numbers
Math.pow(x1, 2)
x1 * x1
x1 ** 2 // ES6 syntax
//squared numbers
Math.pow(x1, 2)
x1 * x1
x1 ** 2 // ES6 syntax