Skip to content

Instantly share code, notes, and snippets.

@kt-aakash
Created July 26, 2017 08:11
Show Gist options
  • Save kt-aakash/017f9a01790d7872f4485c137db7bcce to your computer and use it in GitHub Desktop.
Save kt-aakash/017f9a01790d7872f4485c137db7bcce to your computer and use it in GitHub Desktop.
An example of recursion
function factorialize(num) {
if(num>1)
return num*factorialize(num-1);
else
return 1;
}
factorialize(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment