Avoid multiple try catch async await in JavaScript

Voon Ming Hann
2 min readJun 14, 2021

Async await feels so good because it avoids the callback hell or pyramid of doom:

by writing asynchronous code in a clean one-liner format.

async function() {  const a = await step1();  const b = await step1(a);  return a + b;}

--

--