mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
286 B
10 lines
286 B
"use strict";
|
|
var fibs = [0, 1];
|
|
var ticker = window.setInterval(function () {
|
|
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();
|
|
}
|
|
}, 300);
|
|
|