Beginner project
Digital Clock
A live clock with 12/24-hour toggle using Date and setInterval with cleanup.
Required skills
Complete these lessons first
Folder structure
Project tree
clock/ ├── index.html └── clock.js
Full guide in progress
The step-by-step guide for this project is being written. Use the lessons above to build it yourself — it is a great way to practise.
Possible enhancements
Time zones with Intl.DateTimeFormat
Stopwatch and alarm