+ 3

Explain Math.pow .

What is Math.pow please clarify more?

17th Sep 2019, 8:46 AM
Shuaib Ramadan
Shuaib Ramadan - avatar
3 ответов
+ 10
Math.pow means power, "raising a number to a power of another". Raising A to power of B means multiplying A by itself B times: Math.pow(5, 3) = 5*5*5 = 125 Math.pow(8, 2) = 8*8 = 64 Math.pow(3, 4) = 3*3*3*3 = 81
17th Sep 2019, 9:06 AM
Seb TheS
Seb TheS - avatar
+ 2
Thank you Seb TheS .
17th Sep 2019, 3:39 PM
Shuaib Ramadan
Shuaib Ramadan - avatar
+ 2
It's same as exponent. First parameter takes base, the second takes exponent. E.g. Math.pow(3, 2) is same like 3^2 or 3*3.
18th Sep 2019, 4:50 AM
Baltazarus
Baltazarus - avatar