+ 2
Can somebody explain output of js code
Can somebody explain why this Math.pow(Math.floor(Math.PI),3) alerts 27? So Math.Pi will be 3.14
2 Réponses
+ 18
Math.floor(Math.PI) == 3
Math.pow(3,3) == 3*3*3
+ 3
floor rounded down 3.14 to 3.
than powe 3 to 3 , 3^3 = 3*3*3 = 27.