Skip to content

Commit 1dc53ce

Browse files
committed
this is a SyntaxError for 4.js
Added suggested code for fix
1 parent a1b1cf8 commit 1dc53ce

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
const 12HourClockTime = "8:53pm";
22
const 24hourClockTime = "20:53";
3+
4+
// This is a Syntax error as cant have numbers for an identifier at the start of it.
5+
// Changing to say: time12HourClock would work
6+
7+
// const time12HourClock = "8:53pm";
8+
// const time24hourClock = "20:53";

0 commit comments

Comments
 (0)