# The Object toString() method

> Learn how the JavaScript toString() method returns a string representation of an object, defaulting to [object Object] unless you override it yourself.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2019-04-21 | Topics: [JavaScript](https://flaviocopes.com/tags/js/) | Canonical: https://flaviocopes.com/javascript-object-prototype-tostring/

Called on an object instance, returns a string representation of the object.
Returns the `[object Object]` string unless overridden. Objects can then return a string representation of themselves.

```js
const person = { name: 'Fred' }
person.toString() //[object Object]
```
