Last active
October 20, 2015 23:55
-
-
Save jdetle/823928e172265dbea5b3 to your computer and use it in GitHub Desktop.
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
function foo(arg){ | |
if(arg == baseCase){ | |
//console.log arg and we will get what we want | |
return result; | |
//will returned undefined | |
} | |
else{ | |
//decrement arg | |
foo(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment