---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Error.prototype.toString()

The **`toString()`** method returns a string representing the
specified [`Error`](../Error.mdx) object.

## Syntax

```js
toString()
```

### Return value

A string representing the specified [`Error`](../Error.mdx) object.

## Description

The [`Error`](../Error.mdx) object overrides the [`Object.prototype.toString()`](../../Object/prototype/toString.mdx)
method inherited by all objects. 
