Promises Promises

  • pending: initial state, neither fulfilled nor rejected.
  • fulfilled: meaning that the operation was completed successfully.
  • rejected: meaning that the operation failed.
Figure 1: Chaining methods to a promise

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Journey into Deno Land

Twitch SignIn & get user information in Expo using expo-auth-session.

Virtual Internship Program at LetsGrowMore

Summary of VueJS by Sarah Drasner (Part 5 of 7: Animations)

The Children of Redux — Part 3: redux-zero, stent and choo

Micro Frontends: It’s frontend making some mistakes as Backend?

Developing UIs using Storybook

Is NgRx required for Angular Application Development?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Baldomero Vela III

Baldomero Vela III

More from Medium

Let's talk about a couple of Special types

Code also has emotions. Let's comment only when required.

Intro To JavaScript Unit Testing

A Beginner’s quick setup of a basic JavaScript project, and linking a Jest Test file.

Package.json file where we have updated Jest:test