Skip to content

Commit d58ef31

Browse files
updated the template string with just number
1 parent 65daf85 commit d58ef31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sprint-2/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 `${hours}:00 pm`;
1212
}
1313
if (hours===0){
14-
return `${12}:00 am`;
14+
return "12:00 am";
1515
}
1616
return `${time} am`;
1717
}

0 commit comments

Comments
 (0)