Skip to content

Commit 5486566

Browse files
committed
Fix variable names by renaming identifiers starting with digits
1 parent 0c7b749 commit 5486566

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const 12HourClockTime = "8:53pm";
2-
const 24hourClockTime = "20:53";
1+
const ClockTime12Hour = "8:53pm";
2+
const ClockTime24hour = "20:53";
33

4-
console.log(12HourClockTime, 24hourClockTime);
4+
console.log(ClockTime12Hour, ClockTime24hour);
55

66
//There is a SyntaxError after running the code.
77
//This error occurred because the identifiers '12HourClockTime' and '24hourClockTime' both start with a digit.

0 commit comments

Comments
 (0)