We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90091fd commit 9ee2adfCopy full SHA for 9ee2adf
1 file changed
Sprint-1/2-mandatory-errors/4.js
@@ -5,7 +5,7 @@
5
6
// the times are in the wrong places ie:-20:53 is not a twelve hour time and as they are const they cant be directly changed
7
8
-let twelveHourClockTime = "15.00";
+let twelveHourClockTime = "13.00";
9
let twelthHour = twelveHourClockTime.substring(
10
0,
11
twelveHourClockTime.length - 3
@@ -14,10 +14,8 @@ let twelthHour = twelveHourClockTime.substring(
14
15
let sufix =".AM"
16
17
-if (twelthHour === "00") {
18
- twelthHour = "12";
19
-}
20
-if (twelthHour > 12) {
+
+if (twelthHour => 13) {
21
twelthHour = twelthHour - 12;
22
sufix =".PM"
23
0 commit comments