Skip to content

Commit d97b50e

Browse files
committed
complete exercise mandatory-errors/4
1 parent aad1abe commit d97b50e

File tree

1 file changed

+9
-2
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+9
-2
lines changed

Sprint-1/2-mandatory-errors/4.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
1+
// const 12HourClockTime = "20:53";
2+
// const 24hourClockTime = "08:53";
3+
4+
const clockTime12Hour = "08:53";
5+
const clockTime24Hour = "20:53";
6+
7+
// I see two errors here:
8+
// 1 - In Javascript, variable names cannot start with numbers.
9+
// 2 - The variable names are both descriptive, which is correct, but their values seem to have been swapped with each other: the 24h clock should be 20:53 and the 12h clock 08:53

0 commit comments

Comments
 (0)