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).”
How many ‘calls’ can happen at once?
It can only do one thing at the time
What does LIFO mean?
Last In, First Out data structure
Draw an example of a call stack and the functions that would need to be invoked to generate that call stack.
What causes a Stack Overflow?
when there is a recursive function that doesn’t have an exit point
Javascript error messages
What is a ‘refrence error’?
when you use a variable that is not yet declared
What is a ‘syntax error’?
when you use something that can’t be parsed
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.
What is a ‘tyep error’?
when you spell something wrong
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.
What does the word ‘debugger’ do in your code
it tells you the problems in your code.