Skip to content

Commit 61a8999

Browse files
committed
removed numbers from start of string name to end of string name
1 parent d402f08 commit 61a8999

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
1+
const HourClockTime12 = "20:53"; //variable name cannot start with a number.
2+
const hourClockTime24 = "08:53";
3+
4+
console.log(`12 hr clock ${HourClockTime12}, 24 hr clock ${hourClockTime24}`);

0 commit comments

Comments
 (0)