Javascript: Event Loop & Callback Queue Explained!
When Javascript is run on a browser, the following components come into play:
- The Javascript Engine with its Call stack and its Memory heap
- The Event Loop
- The Callback Queue
- The Web API
Javascript Engine
To read about this, check out the article here.
Event Loop
Remember that:
Javascript is a single-threaded language.