Skip to content
FLAVIO COPES
flaviocopes.com
2026

The String toString() method

Find out all about the JavaScript toString() method of a string

~~~

Returns the string representation of the current String object:

const str = new String('Test')
str.toString() //'Test'

It’s same as valueOf().

~~~

Related posts about js: