Changed around line 23: html
- const time = now.toLocaleTimeString();
- document.getElementById('clock').textContent = time;
+ const options = {
+ weekday: 'long',
+ year: 'numeric',
+ month: 'long',
+ day: 'numeric'
+ };
+ const time = now.toLocaleDateString('en-US', options);
+ document.getElementById('clock').textContent = time;
- setInterval(updateClock, 1000);