Hoisting and the TDZ: Why let Throws and var Is undefinedvar and let are both registered when the scope starts. var is already undefined. let stays untouchable until its line runs.Nov 16, 20265 min read