Bret Cameron is a developer and writer based in London. He’s a full-stack engineer at insurtech startup YuLife, and he’s passionate about all things JavaScript (or JavaScript-ish): React, Node, TypeScript and more!
In JavaScript, there are two main ways to handle asynchronous code: then/catch (ES6) and async/await (ES7). These syntaxes give us the same underlying functionality, but they affect readability and scope in different ways. In this article, we’ll see how one syntax lends …
Read more…