Created
May 18, 2017 14:16
-
-
Save aceqbaceq/6cec9deba67b6166524a95cc7d0ec23a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 power2 (a,n){ | |
var pow; | |
pow=1; | |
for (var i=1; i <=n; i++){ | |
pow = pow * a; | |
}; | |
return pow; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment