Course contentsShow
JavaScript
Lesson 1268 of 2,72329. PromisesPro lesson

Rejecting a Promise

Call reject(reason) inside the executor to transition the promise from pending to rejected with an error.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.