how to set unlimited time in setTimeout nodejs code example
Example 1: settimeout node js
setTimeout(function () {
console.log("5 secondes");
}, 5000);
console.log("now");
Example 2: setinterval nodejs
setInterval(function () {
console.log("Every 5 secondes");
}, 5000);
console.log("now");