Hi All,
I’ve been at the pomodoro clock for a while now, and thought it might be time to reach out to the forums just to get a hint or an idea of how I’m going about this wrong.
I’m able to get an actual timer going…once. No matter what I try the timer runs and then the break timer ends up running at the same time. I’ve tried making if statements to more or less have an ‘on/off’ switch to have one work, and then the other one go afterwards but no dice.
I started researching how to get two timers to work, and it appears that one of the things with JavaScript is that it is a single threaded language, meaning (correct me if I’m wrong) all the code runs at once. So you essentially cannot have this start/stop kinda methodology that I’m trying to implement with the different timers.
So what do I need to do? How can I get one timer to work, stop, then active the next timer? I’m fairly confident in my ability to spin up some code and logic, but I believe this challenge is a higher level concept of how JavaScript works overall (great idea for a challenge honestly). Any hints or points in the right direction would be greatly appreciated!!
Thanks,
Seth