Skip to content

Commit 83dd7a0

Browse files
answer 2.4
1 parent ce89afe commit 83dd7a0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
const 12HourClockTime = "8:53pm";
2+
23
const 24hourClockTime = "20:53";
4+
5+
6+
The error is JavaScript variable names cannot start with a number
7+
8+
The corrected code should be as follows:
9+
10+
const twelveHourClockTime = "8:53pm";
11+
const twentyFourHourClockTime = "20:53";

0 commit comments

Comments
 (0)