Skip to content

Commit 244451e

Browse files
completed exercises
1 parent be89563 commit 244451e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sprint-2/5-stretch-extend/format-time.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This is the latest solution to the problem from the prep.
22
// Make sure to do the prep before you do the coursework
3-
// Your task is to write tests for as many different groups of input data or edge cases as you can, and fix any bugs you find.
3+
// Your task is to write tests for as many different groups of input data or edge cases as you can,
4+
// and fix any bugs you find.
45

56
function formatAs12HourClock(time) {
67
const hours = Number(time.slice(0, 2));
@@ -23,3 +24,5 @@ console.assert(
2324
currentOutput2 === targetOutput2,
2425
`current output: ${currentOutput2}, target output: ${targetOutput2}`
2526
);
27+
28+
console.log formatAs12HourClock("14:00"); // 2pm

0 commit comments

Comments
 (0)