Skip to content

Commit ced7487

Browse files
committed
Explain error, variables starting with number. Explain how to fix
1 parent a20ac92 commit ced7487

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
const 12HourClockTime = "8:53pm";
22
const 24hourClockTime = "20:53";
3+
4+
//SyntaxError: Invalid or unexpected token
5+
//In javascript, variable names cannot start with a number.
6+
//To fix, either put number at the end or start with _

0 commit comments

Comments
 (0)