const main = async () => { console.log(`Hello World!`); }; (async () => { try { await main(); } catch (e) { console.error(e); } })();