Today’s nugget of information is brought to you by McDonald’s 6-piece Chicken McNuggets.

Hoisting in JavaScript is when the compiler performs all declarations at the beginning of a scope. TIL that the following single line of code is interpreted by the compiler as two lines:

This is why functions created by variable assignments cannot be used prior to assignment unlike regular function declarations, i.e.

but the following works:

Until next time!