Answers for "how to close a setInterval"

6

stop a setinterval

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

clearInterval(myVar);
Posted by: Guest on May-31-2020
0

stop window.setinterval javascript

window.clearTimeout(yourTimer)
Posted by: Guest on January-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language