Guest User

Untitled

a guest
Oct 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. // Math.pow (x, y)
  2. Math.pow(2,3) // 8
  3.  
  4. 2 ** 3
  5. // 8
  6.  
  7. // where first digit is base and second digit is exponent
  8.  
  9. var square = 5 ** 2;
  10. console.log(square) // 25
  11.  
  12. var cube = 5 ** 3;
  13. console.log(cube) // 125
Add Comment
Please, Sign In to add comment