Understanding the javaScript call stack
- What is a ‘call’?
- used for functuon invocation, temp storage and managing of funciton invocation
- How many ‘calls’ can happen at once?
- depends on the max call size
- What does LIFO mean?
- Draw an example of a call stack and the functions that would need to be invoked to generate that call stack.
- funciton call myself(){
- callMyself();
- }
- callmyself();
- What causes a Stack Overflow?
- when there is a recursive function (calls itself) with out an exit point
Javascript error messages
- What is a ‘refrence error’?
- when something is trying to be used but its being hoisted at the moment
- What is a ‘syntax error’?
- when something cant be parsed in terms of syntax
- What is a ‘range error’?
- Try to manipulate an object with some kind of length and give it an invalid length
- What is a ‘tyep error’?
- when the types trying to be used are incompatible
- What is a breakpoint?
- pausing of JS execution, like when there is a debugger statment used
- What does the word ‘debugger’ do in your code?
- stops on a certian line when something should stop trying to execute due to error
cite
- The JS call stack - what it is and why (https://www.freecodecamp.org/news/understanding-the-javascript-call-stack-861e41ae61d4/)
- JavaScript error messages && debugging (https://codeburst.io/javascript-error-messages-debugging-d23f84f0ae7c)