how to square a number js 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