Zen and the Art of Asynchronous JavaScript

Client-Side Web Dev (JavaScript, Angular, React, etc.), 0


Promises. For so long, the sales pitch was "Promises save us from callbacks!" But how? And why? Other than keeping us from having to scroll horizontally, how are Promises solving things? This session will start with explaining exactly what a Promise is, and how it deals with the shortcomings of callbacks. We'll look at how Promises allow us to do things that aren't really possible with callback code and thus how they really are a game changer. Next, we'll look at how we can use our newfound understanding of Promises to better exploit the power of the new async and await keywords that make asynchronous code look and feel more like synchronous code. We'll see how a deep understanding of what Promises are, and how to work with them are still extremely important when writing code using async and await.