Skip to content

Commit 029ba69

Browse files
authored
Fix variable names to adhere to naming conventions
Renamed variables to follow naming conventions by using words instead of starting with numbers.
1 parent 8e67204 commit 029ba69

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
const TwelveHourClockTime = "8:53pm";
2-
const TwentyFourHourClockTime = "20:53";
3-
// an identifier or keyword can't follow a numeric literal. We fix this by writing the numbers in words format
1+
const twelveHourClockTime = "8:53pm";
2+
const twintyFourhourClockTime = "20:53";
3+
4+
//we see the error message SyntaxError: Invalid or unexpected token,
5+
6+
//because variable conventions don't allow numbers to be the start of variable names
7+
8+
//to solve this issue, we change the numbers to words format
9+
10+
//done
411

5-
//const 12HourClockTime = "8:53pm";
6-
//const 24hourClockTime = "20:53";

0 commit comments

Comments
 (0)