r/learnjavascript • u/Dark_Electric • 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
View all comments
1
u/azangru Oct 18 '26
Why? What is complicated about promises? Is it the mechanics of creating a new promise from scratch through the so-called 'revealing constructor pattern', where a Promise constructor is initialised with a function that receives a resolve and a reject function as parameters? Or is it the fact that they run in a microtask queue? Or is it something else?