The toString() method returns the value of a String object.
The toString() method returns the value of a String object.
string.toString()
None
A String, representing the value of a string
Return the value of a String object:
//return the value of the string object. var str = "Hello World!"; var res = str.toString(); console.log(res);/* ww w . ja v a 2 s . c o m*/