how do squared in javascript 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