Created
October 17, 2017 16:45
-
-
Save PandiyanCool/c64a8f99daf942fb188d3d9356654228 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Math.pow (x, y) | |
Math.pow(2,3) // 8 | |
2 ** 3 | |
// 8 | |
// where first digit is base and second digit is exponent | |
var square = 5 ** 2; | |
console.log(square) // 25 | |
var cube = 5 ** 3; | |
console.log(cube) // 125 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment