Let’s understand using chrome browser as an example:
- Web/ Browser APIs
- Queues and
- Event Loop
Queues are where asynchronous tasks weigh before they can be executed.
Event Loop ensures async tasks are executed in the right order. This at a very high level is the overview of JS runtime in the browser.
We have learned what is ECMASCRIPT, which in turn helped us understand what is a JS engine which in turn helped us understand what is JS runtime.