android.moparisthebest.org/source/downloads/code/test.coffee

9 lines
155 B
CoffeeScript
Raw Normal View History

fibonacci = (n) ->
if n <= 2
n
else
arguments.callee(n - 2) + arguments.callee(n - 1)
for x in [1..10]
console.log "#{x} : #{fibonacci(x)}"