Skip to content

Instantly share code, notes, and snippets.

@jennz0r jennz0r/fibonacci.js
Created Jan 14, 2015

Embed
What would you like to do?
Fibonacci
function fib(n) {
return function(n, a, b) {
return n > 0 ? arguments.callee(n - 1, b, a + b) : a;
}(n, 0, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.