Im working on the pomodoro clock and right now im just simply tring to get the stop button to work
I wanted to have start and stop as one button
@RoniqueRicketts Subtract 15 Kelvin from the temperature and that could be here.
Theres a boolean called clicked that returns true while a countdown is running
so my loop basically checks if a countdown is running, if not it works as a start button and triggers a setInterval
if clicked returns true then it should stop the interval from running
I tried to do that with clearInterval(countdown) but it doesnt seem to work
I have some questions for nodejs/php developers. When you setting up an app from scratch lets say you buy a domain name and you also buy a serverspace. What do you do next to get coding building up the back-end so you can start serving pages? Anyone has any documentation for nodejs that I could read to get some info?
@TWoerner94 probably a scoping issue, move var countdown outside your click handler so it's global
@TWoerner94 and don't forget to set clicked to false again in your else
Oh cool thanks I'll try that thanks @cmccormack
twoerner94 sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles: