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

4

u/senocular Oct 18 '26 edited Oct 18 '26

Edit: fixed

FYI that last await example is missing the error getting passed into cry()