We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2deec27 commit 2f25058Copy full SHA for 2f25058
Sprint-1/2-mandatory-errors/4.js
@@ -1,2 +1,12 @@
1
const 12HourClockTime = "20:53";
2
-const 24hourClockTime = "08:53";
+const 24hourClockTime = "08:53";
3
+
4
+console.log(12HourClockTime , 24hourClockTime);
5
6
+// Answer
7
+// After running the code, it gave an error message "SyntaxError: Invalid or unexpected token".
8
+// This error means that Javascript was unable to read the code because a variable name cannot start with a number
9
+// I can fix this code by removing the numbers from the start of the variable name
10
11
+const HourClockTime = "20:53";
12
+const hourClockTime = "08:53";
0 commit comments