Skip to content

Commit 4207936

Browse files
committed
Fixed syntax error by moving numbers after the words or spell the numbers out, and fixed the format of the clock which was written incorrectly.
1 parent 9328618 commit 4207936

File tree

1 file changed

+7
-1
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+7
-1
lines changed

Sprint-1/2-mandatory-errors/4.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
2+
const 24hourClockTime = "08:53";
3+
4+
// syntax error: java script does not allow variable names to start with a number as in above examples: "12HourClockTime", "24hoursClockTime".
5+
// The value does not match in both 24hour and 12hour formats.
6+
// Solution: move the numbers after the words or spell the numbers out.
7+
// the variables should be named like this: const hourClockTime12 = "08:53";, const hourClockTime24 = "20:53";.
8+
// Or like spell the number out: const twelveHourClockTime = "08:53"; , const twentyFourHourClockTime = "20:53";.

0 commit comments

Comments
 (0)