JavaScript

Promise

Definition

An object representing the eventual completion or failure of an asynchronous operation. A Promise is in one of three states: pending, fulfilled, or rejected. Promises can be chained with `.then()` and `.catch()`.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms