Skip to content

Instantly share code, notes, and snippets.

@mscolnick
Created March 15, 2021 03:58
Show Gist options
  • Save mscolnick/562ebc573be38580e9e58b033568c8df to your computer and use it in GitHub Desktop.
Save mscolnick/562ebc573be38580e9e58b033568c8df 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