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

preview_player
Показать описание
#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:
Рекомендации по теме
Комментарии
Автор

You could have used the devtools setting to show the timestamp while logging in console. Ctrl + Shift + P -> 'Show timestamps'

Damodara-gy
join shbcf.ru