UsefulLinks
Computer Science
Web Development
Node.js Runtime Environment
1. Introduction to Node.js
2. Setting Up the Development Environment
3. Core Architectural Concepts
4. Node.js Module Systems
5. NPM Package Manager
6. Asynchronous Programming in Node.js
7. Core Node.js Modules
8. Buffers and Streams
9. Building Web Applications with Express.js
10. Working with Databases
11. Advanced Topics
12. Testing and Debugging
13. Security Best Practices
6.
Asynchronous Programming in Node.js
6.1.
The Callback Pattern
6.1.1.
Structure of Callbacks
6.1.2.
Callback Hell
6.1.2.1.
Problems with Nested Callbacks
6.1.2.2.
Solutions and Alternatives
6.1.3.
Error-First Callback Convention
6.1.3.1.
Handling Errors in Callbacks
6.1.3.2.
Best Practices
6.2.
Promises
6.2.1.
Promise States
6.2.1.1.
Pending
6.2.1.2.
Fulfilled
6.2.1.3.
Rejected
6.2.2.
Creating Promises
6.2.3.
Using Promises
6.2.4.
Chaining with then
6.2.5.
Error Handling with catch
6.2.6.
The finally Method
6.2.7.
Utility Methods
6.2.7.1.
Promise.all
6.2.7.2.
Promise.race
6.2.7.3.
Promise.allSettled
6.2.7.4.
Promise.any
6.3.
Async/Await
6.3.1.
The async Function Keyword
6.3.2.
The await Operator
6.3.3.
Error Handling with try-catch
6.3.4.
Combining Async/Await with Promises
6.3.5.
Sequential vs Parallel Execution
6.3.6.
Top-Level Await
Previous
5. NPM Package Manager
Go to top
Next
7. Core Node.js Modules