Skip to content

Commit 3db266c

Browse files
Alex JamshidiAlex Jamshidi
authored andcommitted
added solution to 4.js
1 parent 170c5b8 commit 3db266c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • Sprint-1/2-mandatory-errors

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
2+
const 24hourClockTime = "08:53";
3+
4+
// The error: SyntaxError: Invalid or unexpected token
5+
// This occurs as a variable cannot start with a number (it can include a number)
6+
// Renaming to something like ClockTime12hour would solve this

0 commit comments

Comments
 (0)