Created
October 26, 2014 08:06
-
-
Save macikokoro/ce5372f4e38c9ed876fd to your computer and use it in GitHub Desktop.
JS get the power of a number
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
function powWow (x, y) { | |
return Math.pow(x, y); | |
} | |
console.log(powWow(2, 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment