DEV Community

Discussion on: Async-Await vs. Then to Avoid Callback Hell 📞😈

Collapse
 
smolinari profile image
Scott Molinari

Correct me if I am wrong, but the console log with async/ await is only blocked, because the data variable is in it. If you had of done the same above with the .then example, that console log would be blocked too.

Or put another way, take out the data variable and the async/ await example won't block either.

Scott