Plenty of π
Module 6: Errors, Debugging, and Troubleshooting
Quiz: Quiz 6: Errors and Debugging

1. Which type of error occurs when code violates the grammatical rules of JavaScript, preventing it from being parsed?

2. A `ReferenceError` is typically thrown when...

3. What is the purpose of the `try` block in a `try...catch` statement?

4. Which block in a `try...catch...finally` statement is executed regardless of whether an error occurred or was caught?

5. What does the `debugger;` statement do in JavaScript when developer tools are open?

6. If your code runs without crashing but produces incorrect results, what type of error is it most likely?

7. Which `console` method is specifically designed to output error messages, often styled differently in the console?

8. What is the `name` property of an error object thrown by `throw new TypeError("My type error");`?

9. If a `try` block executes successfully without throwing any errors, what happens to the `catch` block?