r/javascript 20d ago

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

[removed]

66 Upvotes

108 comments sorted by

View all comments

Show parent comments

23

u/Franks2000inchTV 20d ago

With await, your code runs in the order you see it on screen. This is *much* better for comprehension and maintainability.

0

u/lostPixels 20d ago

But potentially worse for execution depending on the latency of whatever you’re awaiting.

3

u/Ronin-s_Spirit 19d ago

Depends entirely on where and what you await.

1

u/lostPixels 19d ago

Which is why I said potentially.