reading-notes

In Memory Storage

  1. What is a ‘call’? “At the most basic level, a call stack is a data structure that uses the Last In, First Out (LIFO) principle to temporarily store and manage function invocation (call).”

  2. How many ‘calls’ can happen at once? It can only do one thing at the time
  3. What does LIFO mean? Last In, First Out data structure
  4. Draw an example of a call stack and the functions that would need to be invoked to generate that call stack.
  5. What causes a Stack Overflow? when there is a recursive function that doesn’t have an exit point

Javascript error messages

  1. What is a ‘refrence error’? when you use a variable that is not yet declared
  2. What is a ‘syntax error’? when you use something that can’t be parsed
  3. What is a ‘range error’? Try to manipulate an object with some kind of length and give it an invalid length and this kind of errors will show up.
  4. What is a ‘tyep error’? when you spell something wrong
  5. What is a breakpoint? The breakpoint can also be achieved by putting a debugger statement in your code in the line you want to break.
  6. What does the word ‘debugger’ do in your code it tells you the problems in your code.