valueOf() in JavaScript

<script language="JavaScript1.1">
    <!--
    var myString = new String("Here is some random text.");

    document.write('The value of my string instance is: ' + myString.valueOf());

    document.close();

    -->

    </script>


Output
The value of my string instance is: Here is some random text.