valueof in JavaScript

<script language="JavaScript1.1">
    <!--
    myNum = new Number(24)

    document.write("The value of myNum is: " + myNum.valueOf());
    -->
    </script>