# How to create a Number object using JavaScript?

JavascriptWeb DevelopmentFront End Technology

The Number object represents a numerical date, either integers or floating-point numbers. The syntax for creating a number object is as follows −

var val = new Number(number);

The Number object without the new operator can be used to perform a type conversion. Let’s see an example of Number.MAX_VALUE property. The Number.MAX_VALUE property belongs to the static Number object.

## Example

Live Demo

<html>
<script>
<!--
function showValue() {
var val = Number.MAX_VALUE;
document.write ("Value of Number.MAX_VALUE : " + val );
}
//-->
</script>
</html>