DEV Community

loading...

Discussion on: The 3 ways to make an asynchronous method in JavaScript

Collapse
lukaszahradnik profile image
Lukáš Zahradník

Your "The callback method" example is fully synchronous, not asynchronous.

Also you don't have to surrond async with try, catch. You can let it propagate or use .then and .catch instead.

Collapse
dieunelson profile image
Collapse
dieunelson profile image
Dieunelson Dorcelus Author

Thanks for your feedback 🙂
I'll make an update soon 😁👍

Forem Open with the Forem app