- setInterval
setInterval - scheduled execution
- setInterval allows for repeated calls. We can stop this infinite calling using Ctrl-C.
examples/basic/with_interval.js
setInterval(function() { console.log("world"); }, 1000); console.log("hello");
$ node examples/basic/with_interval.js hello world world world ^C