DEV Community

Discussion on: Explain async and await of Javascript like I am five.

Collapse
 
nestedsoftware profile image
Nested Software • Edited

I don't feel like I can offer an explanation that is truly eli5. In a nutshell, async/await allows you to write asynchronous code in a way that looks a lot like imperative, synchronous code.

I wrote an article explaining first the reason for async/await, and how it fits in with callbacks and promises, as well as an article showing in detail what happens when you await a promise:

Collapse
 
rupeshiya profile image
Rupesh Krishna Jha

Thanks a lot @Nested software for sharing this article.