Skip to content

Commit af48176

Browse files
authored
Rename clock time variables to valid identifiers
Updated variable names to avoid starting with digits.
1 parent 17d93a6 commit af48176

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
1+
const _12HourClockTime = "20:53"; // identifier can not begin with a number
2+
// or
3+
const $12HourClockTime = "20:53"; // or any change that makes the identifier not stating with digit
4+
const _24hourClockTime = "08:53"; // identifier can not begin with a number
5+
// or
6+
const $24hourClockTime = "08:53"; // or any change that makes the identifier not stating with digit

0 commit comments

Comments
 (0)