So im having trouble getting the “Start” button when pressed to actually CLEAR out the timer function.
(you will probably need to expand)
Code is above: First of all yes the CSS is SUPER basic, but i generally just throw some buttons/etc… on the screen first to make sure stuff works THEN pretty it up :).
Basically when pressing the start button it should start the clock and then set the “stop” variable equal to “true” and then clear the interval. However it doesn’t seem to be doing that. I should be able to clear and set the interval
Any suggestions? This seems like it should be simple and it should work as is, as the else statement is getting called…but the timer isn’t actually stopping.