JavaScript Window clearInterval()
JavaScript Window clearInterval()
The clearInterval() method is used to clear a timer set with the setInterval() method. For setting a function to execute after a certain amount of time, we use the setInterval() method.
Syntax:-
Its syntax is:- clearInterval(interval_Id)
Further Explanation:-
Parameter | Description |
interval_Id | Required. The interval id returned from setInterval(). |