JavaScript - Describe the difference between synchronous and asynchronous JavaScript?

13 points
Created by:

In synchronous javascript, VM waits until each operation execution will not be completed. After each operation, next one can be executed. It stops the program until action will take.
In asynchronous javascript, VM never waits for operation execution will be completed allowing to execute other operations at the same time. After the result of the asynchronous operation will be handled once asynchronous operation will finish execution returning result - the program is informed and gets access to the result. Results of async operation are received in event loop that solves problems that could appear with multithreading programming. 

Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.