Skip to content

Commit 2fc4870

Browse files
Rename variables to match JavaScript naming conventions and verify console.log is working without errors
1 parent 55fa5e7 commit 2fc4870

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
const 12HourClockTime = "8:53pm";
2-
const 24hourClockTime = "20:53";
1+
// JavaScript variable names cannot start with a number. They must start with an alphabet(A-Z), an underscore(_), or a dollar sign($). JavaScript is also case sensitive so they have to use camelCase, PascalCase, among others.
2+
3+
const HourClockTime = "8:53pm";
4+
const hourClockTime = "20:53";
5+
6+
// console.log(HourClockTime);
7+
// console.log(hourClockTime);

0 commit comments

Comments
 (0)