Reading-Notes

View the Project on GitHub MohammadAl-khatib/Reading-Notes

In memory storage

Understanding the JavaScript Call Stack

  1. What is a ‘call’?

    • The function invocation
  2. How many ‘calls’ can happen at once?

    • Only one call
  3. What does LIFO mean?

    • Last In First Out
  4. Draw an example of a call stack and the functions that would need to be invoked to generate that call stack.

    • call staack example
  5. What causes a Stack Overflow?

    • A recursive function that calls itself.

JavaScript error messages

  1. What is a ‘refrence error’?

    • The error for calling a variable that is not declared.
  2. What is a ‘syntax error’?

    • Wrong syntax writing (like spelling mistakes and adding or removing a comma …etc)
  3. What is a ‘range error’?

    • Giving an object an invalid length.
  4. What is a ‘tyep error’?

    • Trying to process a data type with invalid process.
  5. What is a breakpoint?

    • Used to pause JS code.
  6. What does the word ‘debugger’ do in your code?

    • Show the history before reaching a break point