Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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