3. SpiderMonkey :
4. Call Stack
console.log('Explaining call stack');
5. Callback Queue :
Suppose we have a piece of code like this :
console.log(‘I am active’);
console.log('I am queued');
console.log('I am also active');
6. Heap :
Heap is the part where all memory allocation is happened.
7. Web API (Browser API) :
API is stand for Application Programming Interface. It introduced to programming languages to make complex things easier. Previously we have learn that runtime can’t provide everything to execute the code. The common example for this is setTimeout(). When we call it a countdown is started as the time we have declared in the function. This task is done by the browser. The part of the browser which do this for us is Web API or more specifically we can call it as browser API.
8. Event Loop :
Event loop is a built-in mechanism which handle executing multiple task. It decided if the queued task should go to the call stack to get executed.
9. Task Blocking :
10. Concurrency :