what's the difference between calls setInterval() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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