- Function declaration
- Function expression
- Arrow function
- Immediately Invoked Function Expression (IIFE)
- Method Function
- Generator Function
- Constructor function
- Function declaration
- Function expression
- Arrow function
- Immediately Invoked Function Expression (IIFE)
- Method Function
- Generator Function
- Constructor function
Named Functions: Regular functions with a name that can be reused.
Anonymous Functions: Functions without a name, often used as callbacks or assigned to variables.
Arrow Functions: Concise functions using the arrow (=>) syntax.
IIFE (Immediately Invoked Function Expression): Self-invoking functions executed immediately.
Generator Functions: Functions that return an iterator object and can yield multiple values.
Callback Functions: Functions passed as arguments to other functions and called later.
Higher-Order Functions: Functions that take other functions as arguments or return functions.
|
Bookmarks