I scratched my head for awhile when switching from promises to await/async. Hopefully this post helps you not need to scratch yours! 😀 Async/await is the same as using promises. It’s just syntactical sugar to make it look synchronous. The javascript engine sees the “await”…
Category: JavaScript
When not specified, much of this knowledge comes from Java Script Patterns by Stoyan Stefanov, and the JavaScript Pocket Reference (3rd Edition) by David Flanagan. I personally found the JavaScript Pocket Reference to be the most valuable of the two. This is by no means…