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 2176535 commit 7c6f884Copy full SHA for 7c6f884
1 file changed
Sprint-2/5-stretch-extend/format-time.js
@@ -31,7 +31,7 @@ console.assert(
31
const minutes = time.slice(3, 5);
32
33
if (hours == 0) return `12:${minutes} am`;
34
- if (hours < 12) return `${time} am`;
+ if (hours < 12) return `${hours}:${minutes} am`;
35
if (hours === 12) return `${time} pm`;
36
37
return `${hours - 12}:${minutes} pm`;
@@ -73,4 +73,4 @@ console.assert(formatAs12HourClock("12:00") === "12:00 pm");
73
74
// The test passed, so my function gave the expected results.
75
// All the console.assert() tests passed.
76
-// formatAs12HourClock() function works correctly for the inputs I tested.
+// formatAs12HourClock() function works correctly for the inputs I tested.
0 commit comments