projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Version 1
[yaffs-website]
/
node_modules
/
phantomjs-prebuilt
/
lib
/
phantom
/
examples
/
fibo.js
1
"use strict";
2
var fibs = [0, 1];
3
var ticker = window.setInterval(function () {
4
console.log(fibs[fibs.length - 1]);
5
fibs.push(fibs[fibs.length - 1] + fibs[fibs.length - 2]);
6
if (fibs.length > 10) {
7
window.clearInterval(ticker);
8
phantom.exit();
9
}
10
}, 300);