Expressions
Rules
Can be anonymous.
Cannot be hoisted.
File Location
We will be working in the following file:
Anonymous Functions
When we say that function expressions can be anonymous, you'll see below that the function does not have a name after the function
keyword is used:
Naming a function expression
You can also put a name on a function expression:
No Hoisting
Function expressions CAN NOT be hoisted in JavaScript. This means that the call can not come before the function is declared.
Practice
Practice writing 3 different function expressions of your own choosing.
Last updated