JAVASCRIPT PROJECT 01

Digital Clock

Build a real-time digital clock using JavaScript Date and setInterval().

00 : 00 : 00
AM
Loading date...
JavaScript Date Gets the current date and time.
setInterval() Updates the clock every second.
DOM Updates the webpage automatically.
JAVASCRIPT CONCEPT
const now = new Date();
setInterval(updateClock, 1000);