Cover image for Crossover for Work
Logo

Crossover for Work

Engaged Employer

Crossover for Work

Add an Interview

Interview Question

Software Architect Interview

-

Crossover for Work

Difference 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.