Math.power()

I see in block code there a square_root() function. Is there also a power() function? For example:

x2 = x * x
x3 = x * x * x

3 Likes

yes it is “**”

1 Like

There’s an operator for that - a ** b https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Exponentiation

It’s listed in the same dropdown as all math operators

1 Like

So it was one of those double star piece things that made exponents.

I am such a noob! That is such a universal operator I should have realized that it also applies for javascript. I need to delve more into Javascript!

so am I /tell cosmoscowboy purna079 is a noob too