Promises, Promises Review

: The initial state; the operation has not finished yet.

.then() : Used to schedule what happens when the promise is successfully fulfilled. Promises, Promises

.catch() : Used for error handling if the promise is rejected. : The initial state; the operation has not finished yet

In programming, a is an object representing the eventual completion (or failure) of an asynchronous operation and its resulting value. Three States of a Promise : : The initial state