Learning JavaScript? Download my free JavaScript Handbook 🔥

Returns the string representation of the current String object:

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

It’s same as valueOf().

Edit this page


Here's my latest YouTube video. I talk about why I think that dogs are a great help for developers working remotely: