Return Promises in Promise Chains
Learn how to return a promise from a settlement handler using then() and catch().
We'll cover the following
Returning promises in promise chains
Returning primitive values from promise handlers allows the passing of data between promises, but what if we return an object? If the object is a promise, then there’s an extra step that’s taken to determine how to proceed. Consider the following example:
Get hands-on with 1400+ tech skills courses.