← flaviocopes.com

The String valueOf() method

Published Mar 12 2019

Returns the string representation of the current String object:

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

Same as toString().

Wanna go from noobie to expert?

I wrote an entire book on this topic 👇

I also got a super cool course 👇

© 2023 Flavio Copes Flavio Copes using Notion to Site Notion to Site

Interested in solopreneurship?