frontend-interview-questions
frontend-interview-questions copied to clipboard
[Bug] : In Countdown timer JS project, counting down from hour to minutes it taking one extra second.
trafficstars
Problem :
When we fill the time as 01 : 00 : 05 , then the sequence which countdown following is as
01:00:05 -> 01:00:04 -> 01:00:03 -> 01:00:02 -> 01:00:01 -> 01:00:00 -> 00:60:00 -> 00:59:59
That bug any one can see live on @piyush-eon youtube channel on video link : https://www.youtube.com/watch?v=L15ctzu_clE&list=PLKhlp2qtUcSYQojD5G-ElgHezoCyq2Hgo&index=2 at timestamp around 20:43 .
Solution : we have to make changes accordingly so that the countdown follow as : 01:00:05 → ... → 01:00:01 → 01:00:00 → 00:59:59 → 00:59:58...
@coderabbitai please see through the issue .