View on GitHub

reading-notes

Understanding the JavaScript Call Stack

  1. What is a ‘call’?

2.How many ‘calls’ can happen at once?

3.What does LIFO mean?

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

function firstFunction(){ console.log(“Hello from firstFunction”); }

function secondFunction(){ firstFunction(); console.log(“The end from secondFunction”); } secondFunction();

5.What causes a Stack Overflow?

image

JavaScript error messages

  1. What is a ‘refrence error’?

2.What is a ‘syntax error’?

3.What is a ‘range error’?

4.What is a ‘tyep error’?

5.What is a breakpoint?

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

image