Reset timer back to 0

Hi everyone,

I’m having a problem with resetting the time on my timer. When I click the reset button I want that the timer to show “00:00:00”, and stop the count until I press again on the start button.

Here is the code:


Your secondsParagraphs (and minutes and hours) are not single elements but collections (of two elements), so you can’t use .innerText on the whole collection. You’d have to either loop through them, or (since it’s just two elements each) set them both individually. Similar to what you did in your renderDigits function.

1 Like