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?
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);
}