Advertisement
Coldsewoo

Untitled

Oct 17th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function nthFibonacci(n) {
  2.   if (n === 0) return 0
  3.   if (n === 1) return 1
  4.   return nthFibonacci(n - 1) + nthFibonacci(n - 2)
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement