May 2018
Intermediate to advanced
376 pages
9h 22m
English
After reading lesson 30, you will be able to
A promise is an object that represents an eventual value. You can access this eventual or future value by calling .then() on the promise and supplying a callback function. The promise will eventually invoke this callback with the value. If the promise is still waiting for the value (the promise is in a pending state), then the promise will wait until the value is ready or has loaded (at which point the promise enters the resolved state) before invoking the callback with the value. If the promise has already ...
Read now
Unlock full access