Interview Question
Software Architect Interview
-
Crossover for WorkDifference between let vs Var
Interview Answers
2 Answers
▲
1
▼
Basically the same var is functional while let is blocked
Sam on
▲
1
▼
The main difference is the scope var is scoped to the next function block and lets scoped to the next enclosing block
Sam on
Add Answers or Comments
To comment on this, Sign In or Sign Up.