BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / phantomjs-prebuilt / lib / phantom / examples / countdown.js

countdown.js

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
countdown.js 226 B Download Raw
1"use strict";
2var t = 10,
3 interval = setInterval(function(){
4 if ( t > 0 ) {
5 console.log(t--);
6 } else {
7 console.log("BLAST OFF!");
8 phantom.exit();
9 }
10 }, 1000);