Q. Which of the following is a correct way to declare a variable in JavaScript?
β
Correct Answer: (A)
var myVar;
Explanation: The correct syntax to declare a variable is using var, let, or const. 'var myVar;' is correct.