ES2017 Asynchronous Functions (`async`/`await`) The Right Way
5 min readMay 5, 2023
The introduction of Promises and async
functions have significantly transformed the landscape of asynchronous JavaScript. The era of error-first callbacks, commonly referred to as “legacy APIs,” is now a thing of the past.
To put it simply, async
functions can be seen as a convenient layer built on top of Promises. Their purpose is to provide a more intuitive…