Reading Notes

All the answers to some of the questions

View project on GitHub

Reading Notes for Day 10 of 301:

Readings: In memory storage

Reading Understanding the JavaScript Call Stack

What is a ‘call’?

When a function is invoked.

How many ‘calls’ can happen at once?

One.

What does LIFO mean?

Last In First Out

Draw an example of a call stack and the functions that would need to be invoked to generate that call stack.

[Call Drawing]

What causes a Stack Overflow?

From the reading: A stack overflow occurs when there is a recursive function (a function that calls itself) without an exit point.

Reading JavaScript error messages

What is a ‘reference error’?

You’ve referred to something that doesn’t exist, often due to a misspelling.

What is a ‘syntax error’?

It’s an error in how you’ve written the code.

What is a ‘range error’?

When you’ve given something the wrong length.

What is a ‘type’ error’?

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, or using a string method on integers.

What is a breakpoint?

A conditional place where your program stops.

What does the word ‘debugger’ do in your code?

Causes a breakpoint.

Bookmark and Review

JavaScript errors reference on MDN

Things I want to know more about:

I need to find another article about the call stack as I don’t feel like I fully understand what’s happening there.