Promise

An object representing the eventual fulfillment or rejection of an asynchronous operation.

What is Promise in JavaScript?

Promise — An object representing the eventual fulfillment or rejection of an asynchronous operation.

const orderReady = new Promise(resolve => {
    resolve("Ready");
});

Level: Journeyman · More JavaScript terms at this level

Updated