Learning JavaScript? Download my free JavaScript Handbook 🔥

Returns the string representation of the current String object:

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

Same as toString().


Found a typo or problem? Edit this page