Looks pretty intense - difficult to read and to follow the timing logic.
Consider using setTimeout() Method and maybe setInterval() .
Looks pretty intense - difficult to read and to follow the timing logic.
Consider using setTimeout() Method and maybe setInterval() .