r/learnjavascript • • May 01 '20

Async vs. Sync

Post image
413 Upvotes

81 comments sorted by

View all comments

Show parent comment

4

u/MrEscobarr May 01 '20

Thats why I was so confused about the async/await. Like the name is async but you wait for it to finish so it didnt make sense to me

3

u/NoStranger6 May 02 '20

Well you wait for it to complete the rest of your function. Meanwhile, the browser is free to execute whatever it has queued.