Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.43 KB

File metadata and controls

26 lines (22 loc) · 1.43 KB

JavaScript Call Stack

  • Section Source
  • Primarily used for function invoctaion (calls)
    • done one (1) at a time since JS has a single stack
    • execution order is from top to bottom of the stack
    • also known as a sycnhronous call stack
  • the JS Call Stack is a data structure that uses Last In, First Out (LIFO) to teporarily store and manage function calls
  • callstack example.png
  • Stack overflow happens when there is a function that calls itself (recursive function) that has no exit

JavaScript Error Messages

Section Source

  • Reference Error - occur when using a variable that is not declared
  • Syntax Error - occur when your code cannot be parsed due to the syntax
  • Range Error - occur when manipulating length with an invalid length
  • Type Error - occur when accessed types are imcompatible

Breakpoint - sets a point at a line in your code where the engine will pause allowing you to move step by step through the code that remains to be executed, viewing variable states and values.

  • can be accessed through browser developer tools
  • adding a debugger statement to your code can also trigger this

Bookmark/Skim

MDN error references

Things I want to know more about:

  • TBD