#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...