DEV Community

Discussion on: How to build a stopwatch with HTML, CSS, and plain JavaScript (Part 2)

Collapse
 
bnsddk profile image
Omar

Hi Habeebullahi,
I just made a slight change in the JavaScript.
I removed formatTwoDigits function and replaced it by padStart(), I suggest you have a look.

Collapse
 
habeebullahi01 profile image
Habeebullahi01 • Edited

I'll definitely check it out.🤗 Thanks for the update. I have also made the changes you suggested for my version, except the code formatting. I haven't been able to get around to doing it yet. I'm using Atom and when I searched for it, it didn't return any results.