The valueOf() method returns the primitive value of a String object.
The valueOf() method is supported in all major browsers.
Return the primitive value of a string object:
The output of the code above will be:
Your message has been sent to W3Schools.