Advanced JavaScript Advanced JavaScript

Function Declarations, Function Expressions, and Block Scope

A function declaration occurs when the function keyword is the first word of the statement. Functions assigned to a variable become function expressions. Kyle explains these difference while also describing why it is bad to use anonymous functions.
Get Unlimited Access Now