Skip to content

Instantly share code, notes, and snippets.

@slugbyte
Created October 11, 2017 16:37
Show Gist options
  • Save slugbyte/339793e51d4f05a230d3a40b9be0b212 to your computer and use it in GitHub Desktop.
Save slugbyte/339793e51d4f05a230d3a40b9be0b212 to your computer and use it in GitHub Desktop.
let fib = (x) => (x === 0 || x === 1) ? x : fib(x - 1) + fib(x - 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment