“Hentikan setInterval” Kode Jawaban

JavaScript berhenti setInterval

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

clearInterval(myInterval); //stop that interval
Grepper

Hentikan setInterval

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

clearInterval(myVar);

            		
stop interval js
javascript by Average Addax on Mar 12 2021 Comment
2
javascript stop setinterval
javascript by Lioruby         on Mar 29 2021 Comment
3