View on GitHub

reading-notes

Diagram of the call stack

callstack

Quiz-

What is a ‘call’?

How can many ‘calls’ happen at once?

What does LIFO mean?

Answers:

  1. A call is the next task the script will perform. Such as function declaration, variable declaration, function calls.

  2. The call stack is single execution.

  3. Last in - first out; Like in an array with array.push(), array.pop()