The valueOf() function of string object returns primitive value of a string. Use it for example to get primitive value of a String.
Syntax