Function with two arguments resolve and reject. The first argument fulfills the promise, the second argument rejects it.
Returns a promise that resolves when all of the promises in the promises Array argument have resolved.
Returns a promise that resolves or rejects as soon as one of the promises in the promises Array resolves or rejects, with the value or reason from that promise.
Returns a Promise object that is rejected with the given reason.
Returns a Promise object that is resolved with the given value. If the value is a thenable (i.e. has a then method), the returned promise will "follow" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the value.