# Math.power()

**URL:** <https://forum.makecode.com/t/math-power/3786>\
**Category:** Help\
**Created:** [October 6, 2020, 8:34pm UTC](https://forum.makecode.com/t/math-power/3786 "2020-10-06T20:34:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [October 6, 2020, 8:34pm UTC](https://forum.makecode.com/t/math-power/3786/1 "2020-10-06T20:34:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [October 6, 2020, 9:19pm UTC](https://forum.makecode.com/t/math-power/3786/2 "2020-10-06T21:19:40Z")

</div>

yes it is “\*\*”

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [October 6, 2020, 9:20pm UTC](https://forum.makecode.com/t/math-power/3786/3 "2020-10-06T21:20:31Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 6, 2020, 9:41pm UTC](https://forum.makecode.com/t/math-power/3786/4 "2020-10-06T21:41:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [October 6, 2020, 10:43pm UTC](https://forum.makecode.com/t/math-power/3786/5 "2020-10-06T22:43:03Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)\
**Post date:** [October 8, 2020, 8:11pm UTC](https://forum.makecode.com/t/math-power/3786/6 "2020-10-08T20:11:25Z")

</div>

> [@cosmoscowboy](#):
>
> I am such a noob!

so am I `/tell cosmoscowboy purna079 is a noob too`
