Skip to content

Instantly share code, notes, and snippets.

@infinito84
Created December 6, 2014 19:28
Show Gist options
  • Save infinito84/6aa6d85b1c8fa6506508 to your computer and use it in GitHub Desktop.
Save infinito84/6aa6d85b1c8fa6506508 to your computer and use it in GitHub Desktop.
SergioGNU
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