I
I
ince2019-04-26 15:53:40
JavaScript
ince, 2019-04-26 15:53:40

What is synchronous and asynchronous code?

What is synchronous and asynchronous code?
What are the concepts? What is the concept?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
abberati, 2019-04-26
@abberati

great video to help you figure it out

D
dollar, 2019-04-26
@dollar

Synchronous hangs the entire process until it is executed, and only then transfers control further, to the lower code.
The asynchronous code pauses and passes control further, but the breakpoint is remembered and control is returned to it in the future under some condition. For example, a timer or an event. Thus, the process does not hang. Moreover, some variables that are needed to execute asynchronous code can be initialized below, but for now this code cannot be executed.

P
prrrrrrr, 2019-04-26
@prrrrrrr

second link on google. leads to a toaster with a similar question and the answer is there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question