execution time in setInterval() function longer than interval

what happens, if the execution of the function called by serInterval() takes longer than the interval? does it just get skipped?

21st Apr 2017, 8:28 PM
1 Answer
+ 8
Nothing, the function must finish. setInterval would just execute the function back to back. note* this is for setInterval, and other languages where this occurs in threads may be different.
21st Apr 2017, 8:42 PM
Rrestoring faith
Rrestoring faith - avatar