JavaScript clearInterval function enables you to stop the timer event started by the JavaScript setIntterval function.
When you apply the setInterval function a JavaScript function by specifying the time interval then it calls the function continuously after equal intervals of time.