I seem to be doing something wrong with the timer in my pomodoro clock. If I do
t = setInterval(countdown, 1000); The timer doesn’t loop
but if I do
t = setInterval(countdown(), 1000); My timer loops so fast that it goes straight to zero as opposed to changing every second.
What am I doing wrong?
Thanks in advance.