Skip to content

Instantly share code, notes, and snippets.

@Mrshinezee
Created March 14, 2018 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mrshinezee/231c503623d8fb834fbf28434a3ea88a to your computer and use it in GitHub Desktop.
Save Mrshinezee/231c503623d8fb834fbf28434a3ea88a to your computer and use it in GitHub Desktop.
pow created by Mrshinezee - https://repl.it/@Mrshinezee/pow
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