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, Bret Cameron will show you how one syntax lends itself to maintainable code, while the other puts us on the road to callback hell!
Read more…