paint-brush
The Essential Guide to Using Promise in JavaScriptby@taimoor
555 reads
555 reads

The Essential Guide to Using Promise in JavaScript

by Taimoor Sattar3mAugust 14th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Promise in JavaScript is the way to wait for a certain action to process or complete. The promise has the following states: Pending: incomplete (initial state), neither fulfilled nor rejected. Fetch: Wait for the response from an API endpoint to retrieve data from a certain API endpoint. We can use promise in JavaScript in a different situation: wait for response from the request. We’ve covered the basics of promise in Javascript here. To learn more about Javascript, you can visit the site here.

Company Mentioned

Mention Thumbnail
featured image - The Essential Guide to Using Promise in JavaScript
Taimoor Sattar HackerNoon profile picture
Taimoor Sattar

Taimoor Sattar

@taimoor

I am an independent designer and developer.

About @taimoor
LEARN MORE ABOUT @TAIMOOR'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Taimoor Sattar HackerNoon profile picture
Taimoor Sattar@taimoor
I am an independent designer and developer.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here