JSFiddle - React, Tailwind, and code Playground

by mattoconnell408

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)
}