Created
April 18, 2019 03:30
-
-
Save bmcculley/69aaa598e303f2cc4da9438989ca406a 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 getFib(position) { | |
if (position == 0 || position == 1) { return position; } | |
return getFib(position-1) + getFib(position-2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment