Skip to content

Commit 031eb39

Browse files
committed
fix 4.js -> renamed variables to start with letters
1 parent 62c8f2f commit 031eb39

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • Sprint-1/2-mandatory-errors

Sprint-1/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 twelveHourClockTime = "8:53pm";
2+
const twentyFourHourClockTime = "20:53";
3+
4+
// Found out that variable names cannot start with a number in JavaScript.
5+
// To fix this, we can rename the variables to start with a letter or an
6+
// underscore.
7+
// In this instance I spelled out the numbers as words.

0 commit comments

Comments
 (0)