fix: Correct syntax error in Promise initialization example by adding space

pull/3873/head
Edwin Manual 2 years ago committed by GitHub
parent e05269f117
commit b6c8260faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/data/roadmaps/nodejs/content/104-nodejs-async-programming/102-promises.md

@ -5,7 +5,7 @@ Asynchronous functions use promise behind the scenes, so understanding how promi
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.
Creating a Promise:
The Promise API exposes a Promise constructor, which you initialize using newPromise().
The Promise API exposes a Promise constructor, which you initialize using new Promise().
Using resolve() and reject(), we can communicate back to the caller what the resulting Promise state was, and what to do with it.

Loading…
Cancel
Save