UsefulLinks
Computer Science
Programming
By Language
JavaScript Programming Language
1. Introduction to JavaScript
2. Language Fundamentals
3. Operators
4. Control Flow
5. Functions
6. Data Structures
7. Object-Oriented Programming
8. Asynchronous JavaScript
9. JavaScript in the Browser
10. Modern JavaScript Features
11. Error Handling and Debugging
12. JavaScript Ecosystem and Tooling
13. Server-Side JavaScript with Node.js
14. Advanced Topics
5.
Functions
5.1.
Defining Functions
5.1.1.
Function Declarations
5.1.2.
Function Expressions
5.1.3.
Anonymous Functions
5.1.4.
Arrow Functions
5.2.
Calling Functions
5.2.1.
Function Invocation
5.2.2.
Arguments Object
5.3.
Parameters and Arguments
5.3.1.
Default Parameters
5.3.2.
Rest Parameters
5.3.3.
Spread Syntax in Function Calls
5.4.
Return Values
5.4.1.
Returning Values
5.4.2.
Returning Objects
5.5.
Scope and the Scope Chain
5.5.1.
Global Scope
5.5.2.
Function Scope
5.5.3.
Block Scope
5.5.4.
Lexical Scope
5.6.
Closures
5.6.1.
Definition and Mechanics
5.6.2.
Use Cases
5.6.3.
Common Patterns
5.7.
Immediately Invoked Function Expressions
5.7.1.
IIFE Syntax
5.7.2.
Purpose and Benefits
5.8.
Higher-Order Functions
5.8.1.
Functions as Arguments
5.8.2.
Functions as Return Values
5.8.3.
map Method
5.8.4.
filter Method
5.8.5.
reduce Method
Previous
4. Control Flow
Go to top
Next
6. Data Structures