DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to get nth fibonacci javascript
function nthFib(n) { if(n <= 2) return n -1; return nthFib(n - 2) + nthFib(n - 1); }
PREVIOUS
NEXT
Tagged:
#nth
#fibonacci
#javascript
ADD COMMENT
Topic
COMMENT
Name
7+3 =
Submit