Search⌘ K
AI Features

Handling the Fulfilled or Rejected States

Explore how to manage fulfilled and rejected states in ES6 promises by using then to register callbacks and catch for error handling. Understand promise chaining, fixed order execution, and handling multiple asynchronous operations to write cleaner asynchronous code.

We'll cover the following...

Promises can be passed around as values, as function arguments, and as return values. Values and reasons for rejection can be handled by handlers inside the then method of the ...

Node.js
promise.then( onFulfilled, onRejected );
...