DEV Community

Discussion on: JavaScript async and await

Collapse
 
zellwk profile image
Zell Liew 🤗

Way too complicated lol. I just do this:

—-
async function test () {
await a
await b
Return c
}

Test().catch(handleError)

If C errors out, I still catch it with handleError.