A promise means to the object which is responsible for producing a single value as the result in the upcoming future whether it is resolved or not.

Promises are used to manage asynchronous operations.

How to use the promise:

Let promise = new Promise(function(resolve, reject) {
// asynchronous call
});
Promise uses a callback function as the argument and that callback function takes 2 arguments: the first one is the resolve function or the other one is the reject function.

BY Best Interview Question ON 17 Jan 2021