Which keyword is used to declare a variable in JavaScript?
Correct answer
B. var
16 views
B. var
16 views
var, let, and const are used to declare variables in JavaScript. Source: Nabeel Academy, Chapter 3 MCQs (JavaScript section).
Asked in: Matric,FBISE
Not sure why the answer is B? Ask here and get an explanation.