From 0d8ab168f0644f7dbf0a9036ad208ae60bd1c6ae Mon Sep 17 00:00:00 2001 From: ravi-aratchige Date: Thu, 10 Nov 2022 22:42:35 +0530 Subject: [PATCH] Changed comments --- script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script.js b/script.js index f780b8b..cbc241c 100644 --- a/script.js +++ b/script.js @@ -80,12 +80,12 @@ function loadGlassOverlayComponents() { // display the date on the glass overlay document.getElementById('date').innerHTML = "Today is the " + day + daySuffix + " of " + monthNames[month] + " " + year; - // Call function again after specified amount of time + // call function again after specified amount of time let t = setTimeout(loadGlassOverlayComponents, 500); } function checkTime(i) { - // Add a 0 for numbers less than 10 + // concatenate a zero for numbers less than 10 if (i < 10) { i = "0" + i } @@ -93,7 +93,7 @@ function checkTime(i) { } function convertTimeOfDay(hour, timeOfDay) { - // Make the time AM or PM + // make the time AM or PM if (hour > 12) { timeOfDay = "PM"; } else { @@ -103,7 +103,7 @@ function convertTimeOfDay(hour, timeOfDay) { } function convertHour(hourValue) { - // Display time in the 12-hour format + // display time in the 12-hour format if (hourValue == 0) { hourValue = 12; }