When Things Go Wrong: Errors and Debugging Quiz

Interactive Quiz ⋅ 11 Questions
By Stephen Gruppetta

In this quiz, you’ll test your understanding of When Things Go Wrong: Errors and Debugging.

By working through this quiz, you’ll revisit reading a stack trace from the top, finding the value that was undefined, the order of try, catch, and finally, what a catch can and can’t see, throwing error objects, wrapping an error with a cause, catching at the level that can respond, choosing between a throw and a special value, and testing a hypothesis about a wrong result.

Most questions show a short program or an error report and ask what it means or what it prints when you run it in JavaScript. Good luck!

The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A developer studies a stack trace printout with a magnifying glass beside a tall error tower, as a spring labeled THROW flings a cracked card into a net labeled CATCH.

Course

When Things Go Wrong: Errors and Debugging

Learn to read a stack trace, throw and catch errors at the right level, and debug wrong results. Build a running club's season log.

intermediate js