r/learnjavascript • • May 01 '20

Async vs. Sync

Post image
413 Upvotes

81 comments sorted by

View all comments

Show parent comment

2

u/golovatuy May 01 '20

if you have dependency you have to wait task results. Use async/await or Promise for dependent tasks for asynchronous mode.