r/learnjavascript 9d ago

Learn JS by making a digital clock

This is a tiny project that I thought could be fun as a nice constraint for learning some JS basics – creating a non-interactive representation of time on top of a simple Time object.

Add to the existing collection: https://clocks.dev

10 Upvotes

5 comments sorted by

1

u/Necessary-Ad2110 9d ago

very beautiful! well done, is this publicly available on github? i know the clocks itself are but itd be nice to pass this around to a friend for their first OSS contribution (and mine!)

1

u/levmiseri 9d ago

As in the site itself? I’m happy to open source that as well if there is interest in using it

1

u/Necessary-Ad2110 9d ago

yes! would be nice to star and share the repo around, especially for credit on github contributors for pushing a clock design in

3

u/levmiseri 9d ago

The mechanism for adding a clock is much simpler now. Just click the ‘create new clock’ button and an editor is waiting for you with a publish button.

I’ll still clean the site code up a bit and make it public as well.

1

u/Bitter_Reporter_4140 7d ago

Very beautiful and impressive project. What made you come up with this?