So I’ve been trying to figure out a way to implement MomentJS & CountdownJS into my Pomodoro Clock project. I just wanted to see if I had the ability to do so and while I’ve made considerable progress I am still having trouble with two things.
1.) My timer will continue even after reaching 0:00 seconds and thanks to Countdown.js will start to count upward in time. I have tried parsing to seconds & milliseconds but no avail.
2.) My reset button function -->
window.clearInterval(timeoutID) does not reset the way it’s supposed to and get locks up because the my startTimer function is still running.
I’ve tried researching and looking at implementations of
clearInterval() and I think I’m overlooking or not seeing something. Can anyone push me in the right direction. I sort of pushed this off after being frustrated with it for so long but I really want to complete my Front End Development Certificate.