reading-notes

Class Ten Notes (301)

In Memory Storage

function firstFunction(){ console.log(“Hello from firstFunction”); } //returns and prints, then popped off the stack and move on to the secondFunction()

function secondFunction(){ firstFunction(); console.log(“The end from secondFunction”); } //calls and pushes firstFunction() into the stack

secondFunction(); //gets called first, create empty stack frame (entry point of the program)

JS Error Messages[^2]

What is a ‘reference error’? What is a ‘syntax error’? What is a ‘range error’? What is a ‘type error’? What is a breakpoint? What does the word ‘debugger’ do in your code?

Back to main page

References