Callbacks, Promises, and Async/Await in JavaScript
How To Write Asynchronous JavaScript
Published in
3 min readNov 30, 2020
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.