Skip to content

Commit 68c38be

Browse files
changed const name to start with a letter and not a number
1 parent 79b5ec2 commit 68c38be

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
const 12HourClockTime = "8:53pm";
2-
const 24hourClockTime = "20:53";
1+
const clockTime12Hour = "8:53pm";
2+
const clockTime24Hour = "20:53";
3+
4+
console.log(clockTime12Hour);
5+
console.log(clockTime24Hour);
6+
7+
// variable names can't be declared when starting with numbers, only letters

0 commit comments

Comments
 (0)