New course, Command Line for Creatives, out now!

How to make a clock with Javascript

In this tutorial, we talk about how to work Javascript's date and time features to make the hands of an analog clock.

View demo: codepen.io

Intermediate Intermediate

0:00/12:44

May 17th 2018

Playback speed

1.25× 1.5× 1.75×

Skip

−60s −30s −10s +10s +30s +60s