Appearance
Errors
- An error object is a built-in object that provides error information when an error occurs. It has two properties:
nameandmessage.
Error Types
| Error type | Description |
|---|---|
AggregateError | An error indicating that multiple errors occurred. |
EvalError | An error has occurred in the eval() function. |
RangeError | An error has occurred with a number that is out of range. |
ReferenceError | An error due to an illegal reference. |
SyntaxError | An error due to a syntax error. |
TypeError | An error due to a type error. |
URIError | An error due to encodeURI(). |