Stack & Heap Review

Daily Standup

We’ve moved on to JavaScript in the course and today was a review of the stack & heap. It was good to review as I’d forgotten some details:

  • 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.

Up Next

Next we go into AJAX!