clearInterval() global function
Cancels the timer set by setInterval.
Syntax
Parameters
timerId
The timer ID returned by setInterval.
** Passing in an ID value other than the one returned by setInterval is undefined behavior and may cause problems. **
Example
Notices
setTimeout()andsetInterval()have a shared pool of ID numbers, so technicallyclearTimeout()andclearInterval()are interchangeable. However, for clarity, you should avoid doing so.
Compatibility
LCD tables only load in the browser