diff --git a/script.js b/script.js index a3b083f..5743163 100644 --- a/script.js +++ b/script.js @@ -2,7 +2,7 @@ const secondHand = document.querySelector('.second-hand'); const minsHand = document.querySelector('.min-hand'); const hourHand = document.querySelector('.hour-hand'); - function setDate() { + setDate = () => { const now = new Date(); const seconds = now.getSeconds();