reading-notes

Reading 10 - Debugging

Source: MDN, What went wrong? Troubleshooting JavaScript

Q1 Name some key differences between a Syntax Error and a Logic Error.

Q2 List a few types of errors that you have encountered in past lab assignments and explain how you were able to correct them.

The function was actually named something else.

Missing a close parens

I was using the document.getElementById incorrectly

Q3 How will this topic continue to influence your long term goals?

It’s good to know terminology for types of errors to communicate what’s going on with others. The MDN reference is also good for figuring out the solutions to the errors listed.

Source: MDN, What are browser developer tools?

Q4 How would you describe the JavaScript Debugger tool and how it works to someone just starting out in software development?

The debugger tool lets you pause running the code to walk through it line by line. I would describe it like proofreading a confusing page in a novel by reading through it line by line to figure out which part is confusing to the reader.

Q5 Define what a breakpoint is.

A breakpoint is the spot where you want to pause the code running to check out what is happening.

Q6 What is the call stack?

The call stack is the list of functions that are running, in order of when they started. The global stack frame is at the bottom, with the next oldest on top until you get to the function that is currently being executed.

Things I want to know more about

How to use the developer tools that are installed in Chrome. Also, what tools are in other browsers, and which are more convenient to use.