Create a Rejected Promise in JavaScript with Promise.reject()


Dec 06 2018 1 mins  
You can use the [`Promise.reject()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/reject) method to create a promise that is rejected with the given reason.