JavaScript Associate — Medium
Key points
- `var` is function-scoped and hoisted
- `let` and `const` are block-scoped
- Temporal dead zone affects `let` and `const`
- `var` is accessible throughout the function
Ready to go further?
Related questions
JavaScript Associate — Medium
Key points
Ready to go further?
Related questions