Skip to content

Instantly share code, notes, and snippets.

@milleraundra
Last active May 17, 2016 23:25
Show Gist options
  • Save milleraundra/feb0a69e3310f611fb4f40037bd358bf to your computer and use it in GitHub Desktop.
Save milleraundra/feb0a69e3310f611fb4f40037bd358bf to your computer and use it in GitHub Desktop.
Factorial Recursion - Reverse
function factorial(number, start = 1) {
if (start == number) {
return number;
} else {
return start * factorial(number, start + 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment