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 a1ae7a3 commit dd75584Copy full SHA for dd75584
Sprint-2/5-stretch-extend/format-time.js
@@ -4,7 +4,7 @@
4
5
function formatAs12HourClock(time) {
6
const hours = Number(time.slice(0, 2));
7
- const minutes = time.slice(3, 5);
+ const minutes = time.slice(-2);
8
9
if (hours === 0) {
10
return `12:${minutes} am`;
0 commit comments