DEV Community

Discussion on: Explain Async/Await Like I'm Five

Collapse
 
johnmunsch profile image
John Munsch

I have a reputation to uphold here: stackoverflow.com/a/1638961/31899 So let me give it a shot. Ahem! :)

I am your faithful dog JS. I love you with all my heart, but normally when you go off to school. I go do other stuff. I find React the cat and bark at him. That's fun because he's getting really old. I nap. I eat. I drive the dreaded "mail man" away from our house. Then, when you get home again, we play! Hooray!

But today, you said, "Await me and I will give you this bone." So I have not moved. I am a good dog. I am a very good dog. I will stay here and not do anything else until you get back and then I will get the bone and we will play!

That, is Async/Await for a five year old.

Collapse
 
cat profile image
Cat

LMAO I love this!!!

Collapse
 
moose_said profile image
Mostafa Said

Love it! :D