Created
December 7, 2018 19:18
-
-
Save masterfermin02/6704145b453d3e6d45d2fffca9ba23b0 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 factorial(number) | |
{ | |
if(number < 1) return 1; | |
return number * factorial(number - 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment