DEV Community

Aloefuna
Aloefuna

Posted on

Digital Clock

welcome to my pen here we are going to crate a digital clock

Top comments (1)

Collapse
 
hendrikras profile image
Hendrik Ras

It is a good example but perhaps it could have been a better article.

There is a missed opportunity here to highlight some of the choices made in the code. Like, why use translateX(Y) in CSS? What does the setTimeout function accomplish in the JavaScript? What I honestly don't get: why is the showTime function called both at the end of the JavaScript file and in the onLoad of the document?