Category: promises-1

Practical Promises in JavaScript – Order Matters

Welcome to another entry in my Practical Promises series! I know I said the next post would be the last, and we would talk about async/await, but I changed my mind! Instead, today, we’ll revisit the fundamentals to show just how important it is to call things in the right order. [more] If you are…

Read More

Practical Promises in JavaScript – Leveraging Promise Chaining to Achieve Encapsulation

Welcome to part 5 of my Practical Promises series! Today, we’re going to use what we’ve learned to build a better client-side API for a web API. [more] If you are just joining us, here is what you missed: In part 1, we talked about what promises are and what they can be used for….

Read More

Practical Promises in JavaScript – Returning New Promises with Chaining Promises

Welcome to part 4 of my Practical Promises series! In part 1, we talked about what promises are and what they can be used for. In part 2, we started looking at how we can create promises. Then in part 3, we saw how each call to then actually makes a new promise, and that…

Read More

Practical Promises in JavaScript – The Basics of Promise Chaining

Welcome to part 3 of my Practical Promises series! In part 1, we talked about what promises are and what they can be used for. In part 2, we started looking at how we can create promises. Today, we’re going to look at how promises can be chained together. [more] What Happens If… We’ve seen…

Read More