Question · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects

Variable Naming Rules

Which of the following variable names is invalid in JavaScript?

Answer options

  • $element
  • 2ndGeneration
  • dinoWeight
  • _privateData
Show the answer

Correct answer:

  • 2ndGeneration