1var myInterval = setInterval(function(){console.log("mmk")}, 2000);
2
3clearInterval(myInterval); //stop that interval
1let myVar = setInterval(() => {console.log('bop'), 1000);
2
3clearInterval(myVar);
1var refreshIntervalId = setInterval(fname, 10000);
2
3/* later */
4clearInterval(refreshIntervalId);
1 var timerId = setInterval(function(){
2
3 if(window.document.drops.isFinished()){
4 clearInterval(timerId);
5 }
6
7 },1000);
8