JSFiddle - React, Tailwind, and code Playground
JavaScript
new Promise(function (resolve, reject) {
setTimeout(function () {
throw 'First Promise';
},100)
}).catch(function (e) {
console.log(e);
});
new Promise(function (resolve, reject) {
setTimeout(function () {
reject('Second Promise');
},100)
}).catch(function (e) {
console.log(e);
});