Why isn't my clock working?

I’m working on the 25+5 Clock project, and when I press the buttons for it to count down, it doesn’t. Looking through it, I’m not sure where it got messed up or what went missing.

Here’s a link: https://codepen.io/astillround7hief/pen/XWzYbOd?editors=0110

You have two methods named handlePlayPause one sets the interval and the other clears it.

The one that clears it is the one that is called.

Found it. It was the second “handlePlayPause” that needed to be changed to “handleReset” and it fixed it. Thank you so much!

1 Like