What did math.pow () is doing? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What did math.pow () is doing?

2nd Feb 2017, 2:43 PM
Danial Ghoochani
Danial Ghoochani - avatar
2 Answers
+ 10
Math.pow(7,3) is the same as: 7 × 7 × 7 = 343 Where from the left 7 × 7 = 49 × 7 = 343, as you multiple the result to the power in this case 3. Here's another one a little but bigger: Math.pow(8,4) 8 × 8 × 8 × 8 = 4,096 8 × 8 = 64 × 8 = 512 × 8 = 4,096
3rd Mar 2017, 4:06 PM
Mark Foxx
Mark Foxx - avatar
+ 9
Raises a number to a power.
2nd Feb 2017, 2:44 PM
Valen.H. ~
Valen.H. ~ - avatar