Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

stop a setinterval

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

clearInterval(myVar);
 
PREVIOUS NEXT
Tagged: #stop #setinterval
ADD COMMENT
Topic
Name
6+2 =