setInterval and Pomodoro clock

Is the set interval the only way to do the pomodoro clock?

It’s all i can think of right now. But is there perhaps a different way to do this challange, maybe a special function of some sort that sets up a counter which you can then manipulate …

I did not do it with setInterval or setTimeout. I used the Date() object to set a finish time, and then compare current time to it. I found it a lot easier than setInterval.