What are the different types of variables in JavaScript and how are they different from each other?
What to Listen For:
- Clear explanation of var, let, and const distinctions including scope (function vs block) and hoisting behavior
- Understanding of when to use each type, particularly const for immutable references and let for block-scoped variables
- Awareness of best practices, such as avoiding var in modern JavaScript and preferring const by default