Skip to content

Commit e563c47

Browse files
committed
Final updates before need review, and use format document
1 parent 4488e38 commit e563c47

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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-
//
3+
//
44
// function formatAs12HourClock(time) {
55
// const hours = Number(time.slice(0, 2));
66
// if (hours > 12) {
@@ -33,8 +33,7 @@
3333
// `current output: ${currentOutput4}, target output: ${targetOutput4}`
3434
// )
3535

36-
37-
// This is my version
36+
// This is my version
3837
function TimeAs12hours(time) {
3938
const hours = Number(time.slice(0, 2));
4039
const minutes = time.slice(3);
@@ -88,9 +87,9 @@ console.assert(
8887
`current time:${currentTime}, Target Time:${targetTime}`
8988
);
9089

91-
currentTime=TimeAs12hours("12:00");
92-
targetTime="12:00 pm";
90+
currentTime = TimeAs12hours("12:00");
91+
targetTime = "12:00 pm";
9392
console.assert(
9493
currentTime === targetTime,
9594
`current time:${currentTime}, Target Time:${targetTime}`
96-
);
95+
);

0 commit comments

Comments
 (0)