Skip to content

Commit f34c0da

Browse files
committed
Fix invalid variable names
1 parent 80bc588 commit f34c0da

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
const 12HourClockTime = "8:53pm";
2-
const 24hourClockTime = "20:53";
1+
// Variable names cannot begin with a number, so use descriptive names instead.
2+
const twelveHourClockTime = "8:53pm";
3+
const twentyFourHourClockTime = "20:53";
4+
console.log(twelveHourClockTime);
5+
console.log(twentyFourHourClockTime);

0 commit comments

Comments
 (0)