Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | JavaScript Course Quiz 1 | Question 5

  • Difficulty Level : Easy
  • 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 :

Start Your Coding Journey Now!