Skip to content

Commit d1a65b0

Browse files
Fix format time function
1 parent 3d263d3 commit d1a65b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function formatAs12HourClock(time) {
1111
return `12${time.slice(2)} pm`;
1212
}
1313
if (hours > 12) {
14-
return `${String(hours - 12).padStart(2, "0")}:${time.slice(3)} pm`;
14+
return `${String(hours - 12).padStart(2, "0")}:${time.slice(3)} pm `;
1515
}
1616
return `${time} am`;
1717
}

0 commit comments

Comments
 (0)