Loading
Current section: 1. Promises 5 exercises
Problem

Chaining

Loading exercise

Transcript

00:00 Okay. Now we're gonna talk about chaining promises. So you can create that promise object, but then you add that dot then on that promise. That dot then actually returns a new promise. And so when that callback in your then handler finishes when it resolves, like it can do asynchronous stuff too, when that one resolves, then that follow-up promise, will, then be called.

00:21 All of its then handlers will be called. So you can do this chaining all over the place just like we do with arrays. It's very cool and we use it all the time. So let's jump into it.