JSFiddle - React, Tailwind, and code Playground
JavaScript
'use strict';
async () => {
try {
await new Promise((resolve, reject) => {
reject(new Error('Oops.'));
});
} catch (e) {
console.log(e);
}
} ();