String.prototype.valueOf

Returns the primitive value of the String object.

Syntax

valueOf()

Return value

A string.

Examples

"hello".valueOf()
"hello"
new String("hello").valueOf()
"hello"