Skip to content

Commit 0a1a96e

Browse files
fix digital clock ampm problem
1 parent 62be559 commit 0a1a96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎projects/digital-clock/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function updateClock() {
2121
hourEl.innerText = h;
2222
minuteEl.innerText = m;
2323
secondEl.innerText = s;
24-
ampmEl, (innerText = ampm);
24+
ampmEl.innerText = ampm;
2525
setTimeout(() => {
2626
updateClock();
2727
}, 1000);

0 commit comments

Comments
 (0)