Skip to content

Commit 50f9d8c

Browse files
committed
Explained the error message in 4.js
1 parent c81c96d commit 50f9d8c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const twelveHourClockTime = "8:53pm";
22
const twentyfourHourClockTime = "20:53";
33

4+
// Answer: I got the error message SyntaxError: Invalid or unexpected token
5+
// There were arrows pointing at "12" in 12HourClockTime. That is because
46
// variable names cannot start with numbers in javascript. I changed them to start with letters.

0 commit comments

Comments
 (0)