Skip to content

Instantly share code, notes, and snippets.

@bmcculley
Created April 18, 2019 03:30
Show Gist options
  • Save bmcculley/69aaa598e303f2cc4da9438989ca406a to your computer and use it in GitHub Desktop.
Save bmcculley/69aaa598e303f2cc4da9438989ca406a to your computer and use it in GitHub Desktop.
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