JSFiddle - React, Tailwind, and code Playground
JavaScript
try {
const a = setTimeout(() => {throw Error('normal')}, 200);
const b = new Promise((res, rej) => { setTimeout(rej('promise!!'), 100) })
b.then(() => {})
} catch(e) {
console.log(e)
}