Skip to content

Commit ee9f94c

Browse files
committed
fixed syntax error by updating both variable names
1 parent ed25b1d commit ee9f94c

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
const 12HourClockTime = "8:53pm";
2-
const 24hourClockTime = "20:53";
1+
const TwelveHourClockTime = "8:53pm";
2+
const TwentyFourHourClockTime = "20:53";
3+
console.log(TwelveHourClockTime);
4+
console.log(TwentyFourHourClockTime);
5+
6+
//output: SyntaxError: Invalid or unexpected token
7+
// Javascript variables cannot start with a number
8+
// Updated numbers in each variable from 12HourClockTime to TwelveHourClockTime
9+
//and 24HourClockTime to TwentyFourHourClockTime and both times now print in
10+
//the console.

0 commit comments

Comments
 (0)