Quantcast
Channel: What is the difference between synchronous and asynchronous programming (in node.js) - Stack Overflow
Viewing all articles
Browse latest Browse all 11

Answer by Anton Chan for What is the difference between synchronous and asynchronous programming (in node.js)

$
0
0

The function makes the second one asynchronous.

The first one forces the program to wait for each line to finish it's run before the next one can continue. The second one allows each line to run together (and independently) at once.

Languages and frameworks (js, node.js) that allow asynchronous or concurrency is great for things that require real time transmission (eg. chat, stock applications).


Viewing all articles
Browse latest Browse all 11

Trending Articles