Which keyword is used to declare variables in JavaScript?
-
A
var
-
B
let
-
C
const
-
D
all of the above
Correct answer
Correct answer
D. all of the above
17 views
Explanation
JavaScript provides multiple keywords for variable declaration, including var, let, and const, each with different scoping rules.
Video explanation
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ