JSFiddle - React, Tailwind, and code Playground

by Gajus Kuizinas

JavaScript

'use strict';

async () => {
    try {
        await new Promise((resolve, reject) => {
            reject(new Error('Oops.'));
        });
    } catch (e) {
        console.log(e);
    }
} ();