ES6 - Number.MAX_VALUE



The Number.MAX_VALUE property belongs to the static Number object. It represents constants for the largest possible positive numbers that JavaScript can work with.

The actual value of this constant is 1.7976931348623157 x 10308

Syntax

var val = Number.MAX_VALUE;

Example

var val = Number.MAX_VALUE;
console.log("Value of Number.MAX_VALUE : " + val );

Output

Value of Number.MAX_VALUE : 1.7976931348623157e+308
Advertisements