Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ansaribrahim/node-exercise
Understanding Call-back Hell, Async and Promises in Node.js
https://github.com/ansaribrahim/node-exercise
api async callback javascript promises superagent txt
Last synced: 24 days ago
JSON representation
Understanding Call-back Hell, Async and Promises in Node.js
- Host: GitHub
- URL: https://github.com/ansaribrahim/node-exercise
- Owner: AnsarIbrahim
- License: mit
- Created: 2023-12-06T13:55:16.000Z (about 1 year ago)
- Default Branch: dev
- Last Pushed: 2023-12-06T15:21:08.000Z (about 1 year ago)
- Last Synced: 2024-10-23T11:53:43.596Z (2 months ago)
- Topics: api, async, callback, javascript, promises, superagent, txt
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node-Exercise: Understanding Callback Hell, Async and Promises in Node.js
This repository is dedicated to exercises that help understand the concepts of Callback Hell, Async functions, and Promises in Node.js.
## Callback Hell
"Callback Hell" is a phenomenon that afflicts a JavaScript developer when he tries to execute multiple asynchronous operations one after the other.
## Async Functions
Async functions are a combination of promises and generators to reduce the boilerplate around promises, and the "don't break the chain" limitation of chaining promises.
## Promises
Promises are a pattern that helps with one particular kind of asynchronous programming: a function that returns a single result asynchronously.
## Getting Started
To get started, clone the repository and install the dependencies.
```bash
git clone https://github.com/AnsarIbrahim/Node-Exercise.git
cd Node-Exercise
npm install
```