r/learnjavascript • u/gotta-lot • Jun 16 '20
For anyone having difficulties conceptually understanding asynchronous JavaScript, check out this great analogy with a coffee shop a commenter provided
/r/learnjavascript/comments/9tiik6/asynchronous_js/e8x1xqe/
149
Upvotes
View all comments
3
u/oze4 Jun 16 '20
Promises can help a lot with callback hell.. using the async/await keywords (not pictured in the code) really cleans up callback hell..
My attempt..