Synchronous vs. Asynchronous [Node.js]

SYNCHRONOUS = waits for one line of code to finish before moving on to another task

  • example:  PHP 


ASYNCHRONOUS = moves on to another task before it finishes that line of code

  • example:  Node.js (asynchronous by default, sychronous can be forced with certain functions & callbacks)