Skip to content

Commit 6941206

Browse files
committed
Updating the answer
1 parent cb2de15 commit 6941206

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Sprint-2/5-stretch-extend/format-time.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,13 @@ console.assert(
4040
);
4141

4242
const currentOutput5 = formatAs12HourClock("13:00");
43-
const targetOutput5 = "1:00 pm";
43+
const targetOutput5 = "01:00 pm";
4444
console.assert(
4545
currentOutput5 === targetOutput5,
4646
`current output: ${currentOutput5}, target output: ${targetOutput5}`
4747
);
4848

49-
const currentOutput7 = formatAs12HourClock("25:00");
50-
const targetOutput7 = "01:00 am";
51-
console.assert(
52-
currentOutput7 === targetOutput7,
53-
`current output: ${currentOutput7}, target output: ${targetOutput7}`
54-
);
49+
5550

5651
// modified code:
5752

0 commit comments

Comments
 (0)