In fact, we can say that JavaScript arrays are envelopes that have the special property of including multiple values.
Promises are similar. They are envelopes just like arrays are, but the special property they have is they handle future/potential/asynchronous values.
Coding is as much a matter of personal growth as it is of logic and control-flow. I keep patience, curiosity, & exuberance in the same toolbox as vim and git.
*Opinions posted are my own*
I get it now...
Thanks a lot!
Yup!
The non-eli5 answer is that Promises are (not 100% but basically) monads that encode asynchronous behaviour
Got it. :)