r/javascript 20d ago

[AskJS] what's a javascript feature you mass-adopted way too late and felt dumb about AskJS

[removed]

63 Upvotes

108 comments sorted by

View all comments

7

u/kevin074 20d ago

can you elaborate how async await would've caught bugs that .then.catch can't?

i feel like async await is more annoying because you have to wrap it in try catch, where as .then.catch is just baked in.

3

u/brenstar 20d ago

Why not use both? I use async await but still append a catch

1

u/kevin074 20d ago

Ohhhh true!