setInterval does not stop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

setInterval does not stop

After alert I thought I stop the prog🤔 https://code.sololearn.com/WwQW69WB60cA/?ref=app

11th Jan 2021, 7:20 PM
Oma Falk
Oma Falk - avatar
1 Answer
+ 3
You can't clear the interval because the myVar variable used for the interval isn't declared anywhere. Using 'use strict' at the beginning of your code will help you finding undeclared variables.
11th Jan 2021, 9:28 PM
Aaron Eberhardt
Aaron Eberhardt - avatar