Number.valueOf() : valueOf : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » valueOf »

 

Number.valueOf()







The valueOf method gets the primitive value of a Number object as a number data type.












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

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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» valueOf