In memory storage
Understanding the JavaScript Call Stack
-
What is a ‘call’?
- The call stack is primarily used for function invocation
(call).
-
How many ‘calls’ can happen at once?
-
What does LIFO mean?
LIFO: last in first out, the last function that gets pushed into the stack is the first to be pop out, when the function returns.
-
What causes a Stack Overflow?
- A stack overflow occurs when there is a recursive function (a function that calls itself) without an exit point. The browser (hosting environment) has a maximum stack call that it can accomodate before throwing a stack error. resourse
JavaScript error messages
-
What is a ‘refrence error’?
- when try to use a variable that is not yet declared.
-
What is a ‘syntax error’?
- this occurs when you have something that cannot be parsed in terms of syntax.
-
What is a ‘range error’?
- this occurs when give the object invalid length
-
What is a ‘type error’?
- this types of errors show up when the types (number, string and so on) you are trying to use or access are incompatible
-
What is a breakpoint?
- A breakpoint is a point in the program where the code will stop executing
-
What does the word ‘debugger’ do in your code?
- Debuggers allow users to halt the execution of the program, examine the values of variables, step execution of the program line by line, and set breakpoints on lines or specific functions that, when hit, will halt execution of the program at that spot.
Things I want to know more about