Last active
January 15, 2018 15:28
-
-
Save royletron/24182084d0f7b229d4020647fd46fff1 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 wtf (number) { | |
if (number <= 1) { | |
return number; | |
} else { | |
return number * wtf(number-1); | |
} | |
} | |
// CASE 1 | |
wtf(1); | |
// CASE 2 | |
wtf(5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment