what's the difference between calls setInterval() | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

what's the difference between calls setInterval()

what's the difference between call setInterval() like anonymous or inside function?

29th Nov 2016, 4:23 PM
Chaim Gorbov
Chaim Gorbov - avatar
1 Antwort
+ 3
I found just that browser ie9 not compatible with initialization setInterval() inside function, and better to use var myInterval; function myFunction (){ myInterval = setInterval (anotherFunction,1000); }
29th Nov 2016, 8:58 PM
Chaim Gorbov
Chaim Gorbov - avatar