Skip to content

Instantly share code, notes, and snippets.

@ronaiza-cardoso
Created May 24, 2017 11:36
Show Gist options
  • Save ronaiza-cardoso/70d4b396c80c51d2fd12e70caa1c0e14 to your computer and use it in GitHub Desktop.
Save ronaiza-cardoso/70d4b396c80c51d2fd12e70caa1c0e14 to your computer and use it in GitHub Desktop.
const fibRecursion = n => {
if (n === 0 | n === 1)
return n
return fibRecursion(n — 1) + fibRecursion(n — 2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment