Skip to content

Commit 744d864

Browse files
committed
Fix variable name by moving number to end of name. Fix formatting
1 parent c837210 commit 744d864

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,6 +1,6 @@
1-
const 12HourClockTime = "8:53pm";
2-
const 24hourClockTime = "20:53";
1+
const HourClockTime12 = "8:53pm";
2+
const hourClockTime24 = "20:53";
33

44
//SyntaxError: Invalid or unexpected token
55
//In javascript, variable names cannot start with a number.
6-
//To fix, either put number at the end or start with _
6+
//To fix, either put number at the end or start with _ or use a different name

0 commit comments

Comments
 (0)