JavaScript Associate — Easy
Key points
- let is block-scoped, var is function-scoped
- let is not hoisted to a usable state, var is hoisted with undefined
- let variables have a temporal dead zone
- var variables can be accessed before their declaration
Ready to go further?
Related questions
