node js how to set timeout 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");