Skip to content

Timer

Timer is used to execute specific tasks at a specified time.

Timer contains setTimeout, clearTimeout, setInterval, clearInterval four methods.

Usage

setTimeout(() => {
console.log("timeout!!!");
}, 1000);