DEV Community

Discussion on: Asynchronous JavaScript—How Callbacks, Promises, and Async-Await Work

Collapse
 
michaelcurrin profile image
Michael Currin • Edited

Thanks for sharing. Nice comparison of the three approaches. I needed to see something like this.

Though, I struggled to see how async and await syntax works compared with promises syntax. I see now how async replaces resolve and await replaces .then - this guide explains it well:

javascript.info/async-await

Also it defines functions using traditional syntax rather than const and arrow functions so it was easier to read to learn async syntax.