You may have heard of the word synchronous/asynchronous programming. It is an essential knowledge for the front end engineer, but it is pretty complicated to understand, too. That’s why I summarize this topic this time (for my self, too)

Synchronous programming

At first, let me explain about synchronous programming. When programming Javascript, the process will be usually executed line by line. Look at following code.

console.log('1');console.log('2');console.log('3');

The result will be shown like below as you know.

1
2
3

In this way, the program’s code runs straight along line by line without asynchronous programming. By the way, what will be…

Taichi Ishiguro

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store