DEV Community

Discussion on: Control asynchronous code in JavaScript

Collapse
 
nickytonline profile image
Nick Taylor

Just to clarify, this is still asynchronous code, i.e. Promise and async/await.

Collapse
 
ashraful profile image
Mohamad Ashraful Islam

yes. still asynchronous but work like synchronized way. isn't it?

Collapse
 
nickytonline profile image
Nick Taylor

The example you show with async/await allows you to write asynchronous code in a "synchronous" say, but it is still asynchronous.

If that's what you were trying to demonstrate, then the title of the post is misleading. I imagine it would confuse others as well and especially those who might be new to JS. 😉

Thread Thread
 
ashraful profile image
Mohamad Ashraful Islam

I read about it and now I really feel the same way with you. Thanks for such a nice compliment. :)