ExamVeda
Login
Home
This question belongs to Javascript Classes And Modules
Classes and Modules
?

The main difference between the variables declared with var and with let is

Answer & Solution
Correct Answer: Option B
Variables declared with var are defined throughout the enclosing function. Variables declared with let are defined only within the closest enclosing block (and any blocks nested within it, of course).
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.