Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 2.35 KB

File metadata and controls

49 lines (40 loc) · 2.35 KB

Sprint 1 — Mandatory Errors (Explanations)

0.js

1.js

2.js

3.js

  • Error shown:
  • Why it happens:
  • MDN link (optional):

3.js

4.js

  • Error shown:
  • Why it happens:
  • MDN link (optional):

4.js

  • Error shown: SyntaxError: Invalid or unexpected token
  • Why it happens: The variable name 12HourClockTime starts with a number. JavaScript identifiers cannot begin with a digit, so the parser throws a syntax error.
  • Concept: Variable naming rules (identifiers must start with a letter, _, or $)
  • MDN link: https://developer.mozilla.org/en-US/docs/Glossary/Identifier