- Variables and declarations stored in memory are stored in the heap rather than the stack
- When functions are called they are added onto the stack in a stack frame
- The stack frame stores the main function at the bottom of the stack. It also keeps track of the line number where the value needs to be returned to.
Next we go into AJAX!