JavaScript Tutorial/Number Data Type/valueOf
Demonstrating the valueOf() method
<source lang="javascript">
<html> <head> <title>Demonstrating the valueOf() method</title> <script type="text/javascript" language="javascript">
</script> </head> <body onload="DisplayValue()">
This listing demonstrates the use of the valueOf() method.
</body> </html></source>
Number.valueOf()
The valueOf method gets the primitive value of a Number object as a number data type.
<source lang="javascript">
<html>
<body> <script language="JavaScript1.1"> </script> </body> </html></source>