var is function-scoped inside a function and initialized to undefined before its declaration executes. let and const are block-scoped and cannot be accessed before initialization (the temporal dead zone). const requires an initializer and prevents rebinding, not mutation of the value it refers to.
Follow-up Interview Question · Can typeof throw for a name declared later in the same block?