The valueOf() method returns the primitive (basic) value of an object. It is used to retrieve
numeric, boolean, or other basic values from objects. The method does not modify the original object.
EXAMPLE
RESULT
We use cookies to ensure a better user experience and website functionality.