r/javascript • u/Capedcrusader1923 • Jul 22 '26
AskJS [AskJS] what's a javascript feature you mass-adopted way too late and felt dumb about
[removed]
65
Upvotes
r/javascript • u/Capedcrusader1923 • Jul 22 '26
[removed]
View all comments
Show parent comment
1
u/MediocreAnalyst2121 Jul 23 '26
That’s kinda depends, like await loops are not that great if the promises don’t depend on each other, way better to do Promise.all/allSettled and await or .then that.
In performance critical JS environments (smart tvs, smart boxes, etc) you’d probably get a bit better performance with a .then than an await.
Await loops are way more readable tho, and Typescript is amazing except for enums :(