JavaScript is synchronous (By default)
By default - JavaScript is synchronous. That means it runs code line-by-line, one after another.
Blocking: Each line must complete before the next starts
But wait... it also supports asynchronous programming using callbacks, Promises, and async/await...
is-js-synchronous-or-asynchronous.hashnode.dev1 min read