Returns the string representation of the current String object:

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

It’s same as valueOf().

Download my free JavaScript Beginner's Handbook, and check out my premium React/Vue/Svelte/Node/Next.js courses!


Coming soon:
Click to find out more โคด๏ธ