“ClearInterval JavaScript” Respostas de código

JavaScript Stop SetInterval

var myInterval = setInterval(function(){console.log("mmk")}, 2000);

clearInterval(myInterval); //stop that interval
Grepper

Pare um setInterval

let myVar = setInterval(() => {console.log('bop'), 1000);

clearInterval(myVar);

            		
setinterval break
javascript by stdafx-h         on Jun 20 2020 Comment
5
javascript clear interval
javascript by Mysterious Monkey on Feb 10 2021 Comment
8