+ 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 ответ
+ 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