Promises Practice Problems: Promises Practice
- .then is used to handle the next action after a promise is resolved. .catch will fire as a result of a promise in the chain rejecting or erroring.
- Promises are useful when for handling asynchronous actions, especially when several asynchronous actions are chained together. The .then and .catch attached methods help with appropriately handling for successfully resolved or rejected promises. Other
- There are a number of libraries that extend upon the default functionality provided to promises like bluebird and promisfy. Other libraries like jQuery and React make use of promises in various places to handle asynchronous actions.