❗function expression not hoisted
JS ⟩ value ⟩ function ⟩ expression ⟩ not hoisted
a function expression is never hoisted by itself❗
👉 compare: function hoisting, var hoisting.
replit:function expr not hoisted
this is actually an example of var hoisting, about the hoisting of a var (whose value happens to be a function expression).
Last updated