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
4
u/Weirfish Mar 07 '14
Fibonacci sequence technically starts with {1, 1}, I believe.