Skip to content

Instantly share code, notes, and snippets.

@lightsuner
Last active August 29, 2015 13:57
Show Gist options
  • Save lightsuner/9608728 to your computer and use it in GitHub Desktop.
Save lightsuner/9608728 to your computer and use it in GitHub Desktop.
function fibonacci(n)
{
if (n < 0) {
return;
}else if (n < 2) {
return '10'[n];
}
return fibonacci(n-1)+''+fibonacci(n-2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment