DEV Community

loading...

Discussion on: JavaScript async and await

Collapse
zellwk profile image
Zell Liew 🤗 Author

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.