Created
March 14, 2018 05:39
-
-
Save Mrshinezee/231c503623d8fb834fbf28434a3ea88a to your computer and use it in GitHub Desktop.
pow created by Mrshinezee - https://repl.it/@Mrshinezee/pow
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 pow(x,n){ | |
let ans = 1; | |
for(let i = 0; n > i; i++){ | |
ans = ans*x; | |
} | |
return ans; | |
} | |
pow(5,2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment