There was an error while loading. Please reload this page.
1 parent e8e9f51 commit e4b6caeCopy full SHA for e4b6cae
1 file changed
Sprint-2/2-mandatory-errors/4.js
@@ -2,4 +2,10 @@ const twelveHourClockTime = "8:53pm";
2
const twentyFourHourClockTime = "20:53";
3
4
console.log(twelveHourClockTime);
5
-console.log(twentyFourHourClockTime);
+console.log(twentyFourHourClockTime);
6
+
7
+// Original code used `12HourClockTime` and `24hourClockTime` as variable names.
8
+// but these start with numbers, which JavaScript doesn't allow
9
+// variable names must start with a letter, underscore, or dollar sign.
10
+// So I renamed them to `twelveHourClockTime` and `twentyFourHourClockTime`.
11
+// This avoids the SyntaxError and makes the code run.
0 commit comments