Name
String.valueOf( ): return the string â ECMAScript v1: Overrides Object.valueOf( )
Synopsis
string
.valueOf( )
Returns
The primitive string value of
string
.
Throws
-
TypeError
If this method is invoked on an object that is not a String.
See Also
String.toString( )
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.