Understanding error handling in Promise chains
Promise chains
You can create a chain of Promises by returning new Promises from a then handler. Here's a simple example that chains 3 promises together:
Promise.resolve(1)
.then(id => {
console.log(`Success: ${id}`);
return Promi...
joeattardi.dev3 min read