Skip to content
Related Articles

Related Articles

Web technologies Questions | JavaScript Course Quiz 1 | Question 5
  • Last Updated : 17 Apr, 2019

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :