ES6 introduced Promises, a new feature of JavaScript. Promises are a placeholder for a value that can either resolve or reject at some time in the future. The value of the second argument, often called reject or rej, is often the value that should be used to resolve the first argument.
Sort: