Simple countdown - JavaScript - code advice

Hello everybody again!!!

I’m always thankful for your time and advices.

Today, I’ve been struggling to code this simple countdown for the reason not that I would not know how to implenent its logic but most because of code structure. I always think wheter I should use functions or objects and than I feel it’s little bit of this and that.

Project -

If you could have a quick look at JavaScript in particular {don’t comment on desing, I did not bother that much to be honest :smile:} and tell me, how would you structure your code, how would you encapsulate functions/variables if you were to use it in real projects…

Thank you one more time

Hi @Dorfieeee !

The CodePen link doesn’t work (404), if you can fix it maybe I can help you.