Skip to content

Commit 6b83e27

Browse files
committed
Answer to 2-mandatory-errors/4.js code updated and explanation included as text
1 parent e4e3d07 commit 6b83e27

File tree

1 file changed

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

1 file changed

+12
-2
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
1+
//const 12HourClockTime = "20:53";
2+
//const 24hourClockTime = "08:53";
3+
// JavaScript variable names (identifiers) must not start with a digit.
4+
// They may only start with:a letter
5+
// (A–Z or a–z)
6+
7+
const T12HourClockTime = "20:53";
8+
const T24hourClockTime = "08:53";
9+
console.log (T12HourClockTime);
10+
console.log (T24hourClockTime);
11+
12+

0 commit comments

Comments
 (0)