-
-
Save albinotonnina/1a9a1335e23ef136cf9161dc11e62329 to your computer and use it in GitHub Desktop.
JS Bin// source https://jsbin.com/vomoli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fibonacci(n){ | |
if(n<=1) | |
return n; | |
else | |
return fibonacci(n-1) + fibonacci (n-2); | |
} | |
console.log(fibonacci(12)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment