Multiple choice javascript

When you plan for the JavaScript variable names, the first character must be?

  1. Underscore

  2. Comma

  3. Hyphen

  4. Letter

  5. Either A&D

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

JavaScript variable names must begin with a letter, underscore, or dollar sign - they cannot start with a hyphen or comma. Since both underscore and letters are valid first characters, option E is correct.