Files

8 lines
650 B
Markdown
Raw Permalink Normal View History

2026-06-12 11:06:50 +02:00
# Error Objects
JavaScript provides a set of built-in error types that extend the base `Error` class. These include `TypeError`, `RangeError`, `SyntaxError`, `ReferenceError`, and others. Each has a `message` property and a `stack` trace. Using specific error types makes it easier to catch and handle different failure modes separately.
2023-01-02 04:47:46 +04:00
Visit the following resources to learn more:
2024-06-06 23:23:55 +01:00
- [@article@Error Object - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)
2026-06-12 11:06:50 +02:00
- [@article@Control flow & Error handling - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling)