Diagram of the call stack
Quiz-
What is a ‘call’?
How can many ‘calls’ happen at once?
What does LIFO mean?
Answers:
-
A call is the next task the script will perform. Such as function declaration, variable declaration, function calls.
-
The call stack is single execution.
-
Last in - first out; Like in an array with array.push(), array.pop()