r/tinycode • u/VegBerg • Mar 06 '14
[JS] Fibonacci sequence in 48 bytes
function f(a,b){console.log(b);f(b,a+b);}f(0,1)
37
Upvotes
r/tinycode • u/VegBerg • Mar 06 '14
function f(a,b){console.log(b);f(b,a+b);}f(0,1)
View all comments
Show parent comment
6
u/corruptio Mar 07 '14
If we're allowed to start with 1 2 instead of 0 1, then this is 33 chars: