ApplesauceOS
Read Markdown ↗Download .md

clearTimeout

Cancel a scheduled callback.

js
clearTimeout(id)

Arguments

ArgumentTypeMeaning
idnumberID returned by setTimeout.

Returns

No return value (undefined).

Example

js
const id = setTimeout(() => console.log("later"), 1000);
clearTimeout(id);

All JavaScript APIs · Automation playbook