Errors
6 lessons
- 01The Error ObjectUnderstand the built-in Error object used to represent runtime exceptions in JavaScript.
- 02Handling ErrorsUse try/catch blocks to gracefully handle runtime errors and prevent application crashes.
- 03The Finally BlockUse the finally block to execute cleanup code regardless of whether an error occurred.
- 04Throwing ErrorsUse the throw keyword to intentionally trigger an error condition in your application.
- 05When to Use try/catchUnderstand the best practices and rules of thumb for when to wrap code in a try/catch block.
- 06Chapter 9 Cheatsheet: ErrorsA quick summary of JavaScript error generation, handling, and try/catch/finally blocks.