In memory storage
- What is a ‘call’?
function invocation.
- How many ‘calls’ can happen at once?
one, since the javascript engine is single-threaded.
- What does LIFO mean?
Last In, First Out (LIFO), which temporarily stores and manages function invocation (call), and solves the last function that was called .
- Draw an example of a call stack and the functions that would need to be invoked to generate that call stack.
to get this error in console
will look like this
function firstFunction(){
throw new Error('Stack Trace Error');
}
function secondFunction(){
firstFunction();
}
function thirdFunction(){
secondFunction();
}
thirdFunction();
- What causes a Stack Overflow?
a function that calls itself without an exit point.
- What is a ‘reference error’?
It’s when you try to reference something that wasn’t declared yet.
- What is a ‘syntax error’?
this occurs when you have something that cannot be parsed in terms of syntax, like when you try to parse an invalid object using JSON.parse.
- 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 ‘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, like accessing a property in an undefined type of variable.
- What is a breakpoint?
It’s where the code will stop when you are debugging it.
- What does the word ‘debugger’ do in your code?
add a breakpoint.
301 | Home |
---|---|
read01 | Introduction to React and Components |
read02 | State and Props |
read03 | Passing Functions as Props |
read04 | React and Forms |
read05 | Putting it all together |
read06 | NODE.JS |
read07 | REST |
read08 | APIs |
read09 | FUNCTIONAL PROGRAMMING |
read10 | In memory storage |
read11 | Authentication |
read12 | Mongo and Mongoose |
read13 | CRUD |
read14 | Project Ideas |
read15 | Project Kickoff |