tikiwiki/packages/tiki-pkg-casperjs/jakoch/phantomjs/examples/countdown.js
2023-11-20 20:52:04 +00:00

11 lines
226 B
JavaScript
Executable File

"use strict";
var t = 10,
interval = setInterval(function(){
if ( t > 0 ) {
console.log(t--);
} else {
console.log("BLAST OFF!");
phantom.exit();
}
}, 1000);