mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
11 lines
286 B
JavaScript
11 lines
286 B
JavaScript
"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);
|