Which of the following is a valid variable name in JavaScript?
A.
this
B.
that
C.
2that
D.
2this
Explanation:
Which of the following is a valid variable name in JavaScript?
Which of the following is a valid variable name in JavaScript?
A.
this
B.
that
C.
2that
D.
2this
Explanation:
Correct – this is a reserved word, and variables cannot begin with numerals. B is the only correct answer.