DEV Community


Discussion on: Understanding JavaScript async/await in 7 seconds

wassimchegham profile image
Wassim Chegham Author

Hey Maciej, thanks for reaching out.

So to give you some context, the code sample in the animation is meant to be easy for beginners to understand and it is not supposed to be too clever. So this was done on purpose in order to show the flow of all the parameters.

However, if you still prefer passing function references instead of function invocations, I have already made another animation illustrating this: