Created
July 25, 2017 17:55
-
-
Save selfup/928ab33810e80f17eb838c49deee0ae1 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 fib(number) { | |
if (number < 2) return number; | |
return (fib(number - 1) + fib(number - 2)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment