reading-notes

Software Development Reading Notes

View on GitHub

Readings: In memory storage

The JavaScript engine (which is found in a hosting environment like the browser), is a single-threaded interpreter comprising of a heap and a single call stack. The browser provides web APIs like the DOM, AJAX, and Timers.

Understanding the JavaScript Call Stack

a function invocation (call)
a function() execution
one at a time, from top to bottom
Last In, First Out (LIFO) 
![](/reading-notes/call_stack.png)
The stack overflow error is often caused by an infinite loop or the creation of variables larger than the size of the call stack.

JavaScript error messages

This is as simple as when you try to use a variable that is not yet declared you get this type os errors.
when you have something that cannot be parsed in terms of syntax
Try to manipulate an object with some kind of length and give it an invalid length and this kind of errors will show up
the types (number, string and so on) you are trying to use or access are incompatible, 
Flike accessing a property in an undefined type of variable.
breakpoint, which will make your program stop at that point only if a condition is met.
The debugger keyword is used in the code to force stop the execution of the code at a breaking point and calls the debugging function.