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 709bed6 commit 72a2ea2Copy full SHA for 72a2ea2
Sprint-1/2-mandatory-errors/4.js
@@ -1,2 +1,13 @@
1
+/*
2
+ The old code:
3
const 12HourClockTime = "20:53";
-const 24hourClockTime = "08:53";
4
+const 24hourClockTime = "08:53";
5
+console.log(24hourClockTime);*/
6
+
7
+// It is giving a syntax error
8
+// The reason is that variable names cannot start with a number
9
10
+// Updated code:
11
+const hourClockTime12 = "20:53";
12
+const hourClockTime24 = "08:53";
13
+console.log(hourClockTime24, hourClockTime12);
0 commit comments