Skip to content

Commit e29ee81

Browse files
committed
variable names changed
1 parent 973eda4 commit e29ee81

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const HourClockTime1 = "8:53pm";
2-
const hourClockTime2 = "20:53";
3-
console.log(`${HourClockTime1}, ${hourClockTime2}`)
1+
const time12Hours = "8:53pm";
2+
const time24Hours = "20:53";
3+
console.log(`${time12Hours}, ${time24Hours}`)
44

55
// The code displayed the error "SyntaxError: Invalid or unexpected token", this is because javaScript does not understand the variable name format.
66
// This error is solved by renaming the variable name starting it with an alphabet and avoiding starting the variable with a number.

0 commit comments

Comments
 (0)