Skip to content

Commit 23e660e

Browse files
committed
variable names fixed
1 parent 17adfbd commit 23e660e

File tree

1 file changed

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

1 file changed

+12
-2
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
1+
const a24HourClockTime = "20:53";
2+
const a12hourClockTime = "08:53";
3+
4+
// The 12HourClockTime variable should store the time in 12-hour format
5+
// The 24hourClockTime variable should store the time in 24-hour format
6+
7+
// However, the code isn't working
8+
// the error is that the variable names are not valid because they start with a number
9+
// Variable names cannot start with a number
10+
11+
console.log(a24HourClockTime); // Should print: 08:53
12+
console.log(a12hourClockTime); // Should print: 20:53

0 commit comments

Comments
 (0)