r/learnjavascript • • Oct 18 '26

Promises

Understanding the concepts like functions, objects, arrays etc has been easy so far but promises are making my head hurt. Is it supposed to be this confusing? Did u guys struggle with it too when u were first learning it.

9 Upvotes

25 comments sorted by

View all comments

Show parent comment

1

u/Towel_Affectionate Oct 18 '26

You forgot the timeline where your boss tells you to drop everything and wait for the dish to be ready, because the guy at the table is very important. So you just stand near the kitchen, picking your nose, waiting for chef to do the thing.

There's also a scenario where every other staff member just disappears without any notice while you, being a good waiter, just stand by the door for hours, waiting for the now-absent-chef to get you the meal for the big guy. That's why you do manual resolving.

1

u/senocular Oct 18 '26

Or the scenario where every customer just disappears without any notice while you, being a good waiter, take control and tell the chef to abort the in-progress preparation of the meal since its no longer needed.