Skip to the content.

Things I want to know more about

Readings: In memory storage

What is a ‘call’?

How many ‘calls’ can happen at once?

What does LIFO mean’?

Draw an example of a call stack and the functions that would need to be invoked to generate that call stack.’?

function firstFunction(){
  throw new Error('Stack Trace Error');
}

function secondFunction(){
  firstFunction();
}

function thirdFunction(){
  secondFunction();
}

thirdFunction();

What causes a Stack Overflow?

function callMyself(){
  callMyself();
}

callMyself();

summary

  1. It is single-threaded. Meaning it can only do one thing at a time.
  2. Code execution is synchronous.
  3. A function invocation creates a stack frame that occupies a temporary memory.
  4. It works as a LIFO — Last In, First Out data structur

What is a ‘refrence error’?

What is a ‘syntax error’?

What is a ‘range error’?

What is a ‘tyep error?

What is a breakpoint?

What does the word ‘debugger’ do in your code?