Introduction
A function expression lets you create a function and save it in a variable. This helps you use the function later or pass it around like any other value.
When you want to store a function in a variable to use later.
When you want to pass a function as an argument to another function.
When you want to create a function without giving it a name (anonymous function).
When you want to write shorter code inside another function or event handler.
When you want to create functions dynamically during program execution.