countdown.js 226 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 "use strict"; var t = 10, interval = setInterval(function(){ if ( t > 0 ) { console.log(t--); } else { console.log("BLAST OFF!"); phantom.exit(); } }, 1000);