count-timer.js 159 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 var util = require('util'); var count = 0; var id = setInterval(function () { util.puts('Count is ' + count + '. Incrementing now.'); count++; }, 1000);