JavaScript Objects The Strings Object-valueOf () - Javascript Objects

What is JavaScript String - valueOf() Method?

This method returns the primitive value of a String object.

Syntax

Its syntax is as follows −

string.valueOf( )

Return Value

Returns the primitive value of a String object.

Example

Try the following example.

Output

Hello world


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics