0

How to get out of the setInterval function in javascript?

var f=0; f=Math.round(Math.random()); if(f==0) setInterval(myFunction,4186); else alert("It doesn't come to this alert!!");

25th Apr 2020, 9:18 PM
Priyansh Verma
Priyansh Verma - avatar
2 ответов
+ 1
https://www.w3schools.com/jsref/met_win_clearinterval.asp
25th Apr 2020, 9:27 PM
rodwynnejones
rodwynnejones - avatar