Skip to content

Commit 9923e05

Browse files
Rname constant variable to start with letter instead of number.
1 parent 82678b6 commit 9923e05

File tree

1 file changed

+11
-2
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
1+
const Hour12ClockTime = "20:53";
2+
const hour24ClockTime = "08:53";
3+
4+
console.log(Hour12ClockTime); //"20;53"
5+
console.log(hour24ClockTime); // "08:53"
6+
7+
// SyntaxError: Invalid or unexpected token.
8+
// variable names cannot start with number.
9+
10+
// renaming our variable would be the right thing.
11+

0 commit comments

Comments
 (0)