Many times, we think about how JavaScript actually works. We come across terms like V8 engine, single-threaded, callbacks, asynchronous, non-blocking, Event loop and concurrency— all these fancy terms — but we hardly try to understand how they actually work.
Let’s look at the diagram below — This represents the JavaScript runtime