#25 + 5 Clock tests Missing test 9,10,11

I’ve passed all other test cases. I initially thought it had to do with not removing the created setInterval, but I tried tracking the interval using state and removing that exact intervalID but still fail these test cases. Any help would be helpful. Thank you.

Here is my Codepen https://codepen.io/moises-lopez-ferretti/pen/QWBOpYp?editors=0011 :slight_smile:

From a reset, it takes 2 seconds for your times to update after starting. This is usually caused by a setInterval() running its callback one second later and not immediately (there’s a simple trick to doing that…) and is a fairly common issue in the forums if you want more details to see if this is your problem.

It should be fairly easy to diagnose by logging the time when the start button is clicked and when the time is actually updated.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.