aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/fibo.coffee
blob: d9f9178a80b46f24903ba2cbe575f1e396e92c8f (plain)
1
2
3
4
5
6
7
8
fibs = [0, 1]
f = ->
  console.log fibs[fibs.length - 1]
  fibs.push fibs[fibs.length - 1] + fibs[fibs.length - 2]
  if fibs.length > 10
    window.clearInterval ticker
    phantom.exit()
ticker = window.setInterval(f, 300)