ApplesauceOS
Read Markdown ↗Download .md

clearInterval

Cancel a scheduled callback.

js
clearInterval(id)

Arguments

ArgumentTypeMeaning
idnumberID returned by setInterval.

Returns

No return value (undefined).

Example

js
const id = setInterval(() => console.log("later"), 1000);
clearInterval(id);

All JavaScript APIs · Automation playbook