There was an error while loading. Please reload this page.
1 parent 696c2c8 commit e81e722Copy full SHA for e81e722
1 file changed
Sprint-2/2-mandatory-errors/4.js
@@ -1,2 +1,13 @@
1
-const 12HourClockTime = "8:53pm";
2
-const 24hourClockTime = "20:53";
+//const 12HourClockTime = "8:53pm";
+//const 24hourClockTime = "20:53";
3
+
4
+const HourClockTime12 = "8:53pm";
5
+const hourClockTime24 = "20:53";
6
7
+console.log(HourClockTime12);
8
+console.log(hourClockTime24);
9
10
+// when we tried to run the code it threw an error saying "SyntaxError: Invalid or unexpected token"
11
+// this happened because when we were declaring a variable we gave an invalid name to the identifier which started with number
12
+// variable name must start with letters or _ or $
13
+// we can fix it buy removing the front number of the identifiers and may be put them last
0 commit comments