Skip to content

Commit ae004f1

Browse files
committed
task completed
1 parent 263727a commit ae004f1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎Sprint-3/5-stretch-extend/format-time.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,20 @@ function formatAs12HourClock(time) {
111111
return `${time} am`;
112112
}
113113

114-
const currentOutput = formatAs12HourClock("00:00");
115-
const targetOutput = "12:00 am";
114+
const currentOutput = formatAs12HourClock("01:00");
115+
const targetOutput = "01:00 am";
116116
console.assert(
117117
currentOutput === targetOutput,
118118
`current output: ${currentOutput}, target output: ${targetOutput}`
119119
);
120-
console.log(formatAs12HourClock("00:00"))
120+
console.log(formatAs12HourClock("01:00"))
121121

122-
const currentOutput2 = formatAs12HourClock("12:00");
123-
const targetOutput2 = "12:00 pm";
122+
const currentOutput2 = formatAs12HourClock("19:30");
123+
const targetOutput2 = "7:30 pm";
124124

125125
console.assert(
126126
currentOutput2 === targetOutput2,
127127
`current output: ${currentOutput2}, target output: ${targetOutput2}`
128128
);
129129

130-
console.log(formatAs12HourClock("12:00"));
130+
console.log(formatAs12HourClock("19:30"));

0 commit comments

Comments
 (0)