setInterval does not stop | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 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