setInterval does not stop | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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