Created
December 6, 2014 19:28
-
-
Save infinito84/6aa6d85b1c8fa6506508 to your computer and use it in GitHub Desktop.
SergioGNU
This file contains 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
var factorial=function(value){ | |
if(value>1){ | |
return value*factorial(value-1) | |
} | |
return value; | |
} | |
function main(n){ | |
return factorial(n); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment