Classes and Modules on JavaScript related Questions and Answers


Question :   The main difference between the variables declared with var and with let is __________
1. var is confined to a particular function but let is not
2. let is confined to a particular function but var is not
3. var defines values based on conditions but let does not
4. let doesn't let you change the value of the variable
Answer :   2 - let is confined to a particular function but var is not  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter