DEV Community

Discussion on: Simple Countdown Timer using JavaScript

Collapse
 
anubarak profile image
Robin Schambach • Edited

What's the purpose of returning a function by your timer function instead of using 2 arguments?

As for your other changes I wanted to explain the very same things and couldn't agree more. However in my opinion your syntax to start the timer kinda looks ugla to be to be honest. The same goes for timestampDiff seems only harder to read.