Callbacks, Promises, and Async/Await in JavaScript

How To Write Asynchronous JavaScript

Tyler Hawkins
JavaScript in Plain English
3 min readNov 30, 2020

--

Photo by Álvaro Bernal on Unsplash

JavaScript is single-threaded, which means that only one thing can happen at a time. Synchronous code is executed from top to bottom in the order that the code is written. Synchronous code is also “blocking” — each line of code waits for the previous line of code to be executed before it runs.

--

--