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