Open In App

Web technologies Questions | JavaScript Course Quiz 1 | Question 5

How many ways are there with which we can declare a variable in javascript?
(A) Only one
(B) Three
(C) Infinitely many
(D) None of the above

Answer: (B)
Explanation: Before ES6 we had only one way of declaring variables: using var. After ES6 we have two more ways, let and const.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :