Learn JavaScript

Lesson 8 of 9 · Error Handling: throw, try, catch, finally, and Reading a Stack Trace

Module 10 · Error Handling: throw, try, catch, finally, and Reading a Stack Trace

Cheat Sheet: Every Piece of Error Handling and Every Error Kind on One Page

ProReading

Keep this page open while you solve the problems of this module. The first table is every piece of the syntax. The second is the error kinds with their real Node 22 messages. The third is the choice of how a function says it failed, and the last is the list of bugs to check before you submit.

Checking what this lesson needs for you…

What is inside Cheat Sheet: Every Piece of Error Handling and Every Error Kind on One Page

  1. Every piece
  2. Which error, with which message
  3. Throw, null, or a result object
  4. Where the try goes
  5. Bugs to check before you submit

Module test

Ten questions on this module. Pass at 70%, and you can take it as many times as you like.

Take the module test