Created
September 20, 2018 08:46
-
-
Save v1b3m/5e918643b64181ad42ecf2898b924b66 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 fibonacci(num) { | |
if (num <= 1) return 1; | |
return fibonacci(num - 1) + fibonacci(num - 2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment