Also called: setTimeout, setInterval, clearTimeout
Example
setTimeout hides the "Saved" message after three seconds.
In code
const t = setTimeout(() => toast.hidden = true, 3000);
clearTimeout(t);
const poll = setInterval(checkStatus, 10000);
Learn more
- Window: setTimeout() methodMDN Web Docs (opens in a new tab)
- Window: setInterval() methodMDN Web Docs (opens in a new tab)
Related terms
Added 2026-11-30 · Last reviewed 2026-11-30