From 2bb640d69b01285a9c5508b5527c16441423cec9 Mon Sep 17 00:00:00 2001 From: Lily Sun Date: Wed, 14 Dec 2016 19:47:59 +0800 Subject: [PATCH] update index-FINISHED.html The author got confused about the const "hours" and "mins". --- 02 - JS + CSS Clock/index-FINISHED.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02 - JS + CSS Clock/index-FINISHED.html b/02 - JS + CSS Clock/index-FINISHED.html index d4cb3b56a8..915089ce97 100644 --- a/02 - JS + CSS Clock/index-FINISHED.html +++ b/02 - JS + CSS Clock/index-FINISHED.html @@ -84,8 +84,8 @@ const minsDegrees = ((mins / 60) * 360) + 90; minsHand.style.transform = `rotate(${minsDegrees}deg)`; - const hour = now.getHours(); - const hourDegrees = ((mins / 12) * 360) + 90; + const hours = now.getHours(); + const hourDegrees = ((hours / 12) * 360) + 90; hourHand.style.transform = `rotate(${hourDegrees}deg)`; }