Skip to content

Instantly share code, notes, and snippets.

@MarioAriasC
Created September 23, 2021 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarioAriasC/c5ce8b33b92797cf0159eabe2c9d114b to your computer and use it in GitHub Desktop.
Save MarioAriasC/c5ce8b33b92797cf0159eabe2c9d114b to your computer and use it in GitHub Desktop.
let fibonacci = fn(x) {
if (x < 2) {
return x;
} else {
fibonacci(x - 1) + fibonacci(x - 2);
}
};
fibonacci(35);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment