Returns the primitive value of the specified object. By default, the valueOf method is inherited by every object descended from Object.
Every built-in core object overrides this method to return an appropriate value.
If an object has no primitive value, valueOf returns the object itself. |