Number valueOf()
The valueOf() method returns the primitive numeric value represented by the object.
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<script type="text/javascript">
var numberObject = new Number(10);
document.writeln(numberObject.valueOf());
</script>
</head>
<body>
</body>
</html>