Skip to content

Instantly share code, notes, and snippets.

@macikokoro
Created October 26, 2014 08:06
Show Gist options
  • Save macikokoro/ce5372f4e38c9ed876fd to your computer and use it in GitHub Desktop.
Save macikokoro/ce5372f4e38c9ed876fd to your computer and use it in GitHub Desktop.
JS get the power of a number
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