A function declaration’s binding is initialized with the function before ordinary statements in its scope execute. A function expression produces a function when the expression is evaluated. With const or let, early access hits the TDZ. With var, the early value is undefined, so invoking it throws TypeError.
Follow-up Interview Question · Explain the difference between the binding existing and being initialized.