Pomodoro Clock Help with timer loop

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.

Thank You!!!

I got it to work

Does negative session time have any meaning?

image

 sessionTime = Math.max(1, sessionTime - 1)