In modern web development Promises are very useful when dealing with asynchronous code flows to avoid “callback hell”. A “>Promise can be either resolved, pending (neither resolved/rejected) or rejected....