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 0377355 commit dfd2491Copy full SHA for dfd2491
1 file changed
Sprint-2/5-stretch-extend/format-time.js
@@ -13,7 +13,7 @@
13
// Updated function:
14
function formatAs12HourClock(time) {
15
const hours = Number(time.slice(0, 2));
16
- const minutes = time.slice(3, 5);
+ const minutes = time.slice(-2);
17
18
if (hours === 0) {
19
return `12:${minutes} am`;
0 commit comments