String toString() method

Find all information about the JavaScript toString() method of strings

Returns the string representation of the current String object:

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

samevalueOf().

Download mine for freeJavaScript beginner's manual


More js tutorials: