...

/

Summary: Basics of Promises

Summary: Basics of Promises

Get a brief summary of promise basics in this lesson.

We'll cover the following...

Summary

A promise is a placeholder for a value that may be provided later as the result of some asynchronous operation. Instead of assigning an event handler or passing a callback into a function, we can use a promise to represent the result of an operation.

Promises have three states: pending, fulfilled, and rejected. A promise starts in a pending (unsettled) state and becomes fulfilled on a successful ...