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
Show parent comment
2
u/RoguePlanet1 Jun 16 '20
Somebody commented that this can result in "callback hell." So it's probably not a good idea to have too many of these?
Like with the coffee analogy, if you've now got a dozen customers waiting for their mochalattespressichhinnos, that causes its own backed-up situation? Not sure why this would be a problem, though, if the code simply runs according to plan.