09.01.2025, 16:13
It looks that there is some small bug in this stopwatch. When minutes has some value higher than "00" clicking on the reset button doesn't reset the minutes. It starts to work when using appendMinutes.textContent = "00" instead of appendMinutes.innerHMTL = minutes in resetBtn.onclick function.
And it would be more precise with using Date.now() instead of incrementing tens in setInterval which isn't perfect for this purpose because it can be snoozed by a browser when you will switch the tab and restarted when you will return to it.
And it would be more precise with using Date.now() instead of incrementing tens in setInterval which isn't perfect for this purpose because it can be snoozed by a browser when you will switch the tab and restarted when you will return to it.
Done is better than perfect