Understanding Synchronous vs Asynchronous JavaScript
Most of what you write in JavaScript is Synchronous procedural code read from top to bottom and executed in the single main thread of the JavaScript process.
However, that doesn’t mean that JavaScript can’t run code in an Asynchronous way.
The video discusses the differences and how that can unexpectedly impact the code that you write.
Promises Playlist: https://www.youtube.com/watch?v=SmPouEFKOBg&list=PLyuRouwmQCjngZXVn48vYmPK_1yAF-fLw
Code GIST: https://gist.github.com/prof3ssorSt3v3/c95822670b6a707dbcf8cf55b2c57160
source