Skip to content

Instantly share code, notes, and snippets.

@v1b3m
Created September 20, 2018 08:46
Show Gist options
  • Save v1b3m/5e918643b64181ad42ecf2898b924b66 to your computer and use it in GitHub Desktop.
Save v1b3m/5e918643b64181ad42ecf2898b924b66 to your computer and use it in GitHub Desktop.
function fibonacci(num) {
if (num <= 1) return 1;
return fibonacci(num - 1) + fibonacci(num - 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment