The valueOf() method obtains the value of the specified object.
<html> <body> <script language="JavaScript"> <!-- var age = Number(30); document.write(age.valueOf()); --> </script> </body> </html>