7 lines
87 B
CoffeeScript
7 lines
87 B
CoffeeScript
|
foo = (x) ->
|
||
|
if x < 2
|
||
|
return x
|
||
|
foo(x - 1) + foo(x - 2)
|
||
|
|
||
|
alert(foo(10))
|