64. JavaScript Scheduling a call - setInterval, clearInterval, nested setTimeout

Опубликовано: 22 Март 2026
на канале: Miss Xing (邢老师)
534
18

#MissXing #JavaScript

In this video, I explained setInterval, clearInterval, nestedTimeout.

Nested setTimeout 
Nested setTimeout allows to set the delay between the executions more precisely than setInterval.
The real delay between func calls for setInterval is less than in the code!
The nested setTimeout guarantees the fixed delay.


Source code:
https://github.com/TinaXing2012/javas...
https://github.com/TinaXing2012/javas...