From 4ddb6c735c8437b84aff77977a063acb691d3fe1 Mon Sep 17 00:00:00 2001 From: Sagar Sharma <78422995+Sagar-Sharma-7@users.noreply.github.com> Date: Sun, 21 Feb 2021 05:50:51 +0530 Subject: [PATCH] changed functions statement to arrow function --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();