JavaScript String valueOf()
JavaScript String valueOf()
The valueOf() method is used to return the primitive value of a string. It does not have any effect on the original string. It is also used to convert a string object into a string.
Syntax:-
Its syntax is:- string.valueOf()
Return:-
Its return is:- primitive value of the string