Skip to content

Instantly share code, notes, and snippets.

@MarioAriasC
Created September 23, 2021 14:34
Embed
What would you like to do?
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