Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Fibonacci Recursive in js

function fib(n) {
  if (n < 2){
    return n
  }
  return fib(n - 1) + fib (n - 2)
}
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #Fibonacci #Recursive #js
ADD COMMENT
Topic
Name
4+7 =