ASYNC/AWAIT in JS

A potent pair of keywords in standard JavaScript ES2017.

Photo by Ferenc Almasi on Unsplash

avaScript language is single-thread, i.e., only one thread only to execute the command line. If running under a synchronized (synchronous), then when performing complex calculations, call AJAX request to the server, call the database (in NodeJS), this thread will stop waiting to do the whole browser is… crash.