What is call stack

A call stack is a mechanism for an interpreter to keep checking which function should be called

https://developer.mozilla.org/en-US/docs/Glossary/Call_stack

What is the event loop

A event loop is a mechanism that deals with the coordination between “task queue” and “call stack”.

What is a task queue?

Task queues is a list of messages that wait to be processed in call stack. In the other word, they are asynchronous from call stack. Each message is associated with a function, which get called to handle the message. There are two different task queues:

Untitled

https://2014.jsconf.eu/speakers/philip-roberts-what-the-heck-is-the-event-loop-anyway.html

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Event_loop

http://latentflip.com/loupe/