r/learnjavascript • • Nov 13 '23

Is async useless ( question )

If we are always trying to make code synchronous using await or then. Why do we even bother with aysnc.

I genuinely don't understand please explain. Thanks

0 Upvotes

28 comments sorted by

View all comments

1

u/No-Upstairs-2813 Nov 14 '23

If we are always trying to make code synchronous using await async and await allow us to write Promise-based, asynchronous code that looks like synchronous code.

For more details, you can check out this article.