Chaining Promises

Explore in the sandboxView live

This is an example of how to chain promises using .then(). This sample and a general overview of promises are described in more detail in the Working with promises topic.