- Fixed a typo
- Fixed the title of the freecodecamp link
pull/3803/head^2
Orca 1 year ago committed by GitHub
parent ddf8884501
commit 5256df9c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/data/roadmaps/nodejs/content/104-nodejs-async-programming/102-promises.md

@ -1,6 +1,6 @@
# Promises # Promises
A promise is commonly defined as a proxy for a value that will eventually become available A promise is commonly defined as a proxy for a value that will eventually become available.
Asynchronous functions use promise behind the scenes, so understanding how promises work is fundamental to understanding how "async" and "await" works. Asynchronous functions use promise behind the scenes, so understanding how promises work is fundamental to understanding how "async" and "await" works.
Once a promise has been called, it will start in a pending state. This means that the calling function continues executing, while the promise is pending until it resolves, giving the calling function whatever data was being requested. Once a promise has been called, it will start in a pending state. This means that the calling function continues executing, while the promise is pending until it resolves, giving the calling function whatever data was being requested.
@ -13,5 +13,5 @@ Visit the following resources to learn more:
- [Promise Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) - [Promise Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
- [Official Website](https://www.promisejs.org/) - [Official Website](https://www.promisejs.org/)
- [Official Website](https://www.freecodecamp.org/news/javascript-promises-for-beginners/) - [JavaScript Promises for Beginners](https://www.freecodecamp.org/news/javascript-promises-for-beginners/)
- [Asynchronous JavaScript - Promises](https://www.youtube.com/watch?v=a_8nrslImo4/) - [Asynchronous JavaScript - Promises](https://www.youtube.com/watch?v=a_8nrslImo4/)

Loading…
Cancel
Save