window.clearInterval()We have seen how to call again and again a function at a time interval by using setInterval() method . Now we will learn how to stop this setInterval by using clearInterval() method in JavaScript. Here is the code
We have used setInterval() and clearInterval() and developed this code which display the current time on click of Start button and stops displaying on click of Stop button.
Here is the code.
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
![]() | ||
| ||