Number Static Properties

Number.EPSILON

The smallest interval between two representable numbers.

Number.MAX_SAFE_INTEGER

The maximum safe integer in JavaScript (253 - 1).

Number.MAX_VALUE

The largest positive representable number.

Number.MIN_SAFE_INTEGER

The minimum safe integer in JavaScript (-(253 - 1)).

Number.MIN_VALUE

The smallest positive representable number - that is, the positive number closest to zero (without actually being zero).

Number.NaN

Special "not a number" value.

Number.NEGATIVE_INFINITY

Special value representing negative infinity; returned on overflow.

Number.POSITIVE_INFINITY

Special value representing infinity; returned on overflow.

Number.prototype

Allows the addition of properties to a Number object.


RESETRUNFULL
<!DOCTYPE html><html><body><script>

console.log(Number.EPSILON);                                           // 2.220446049250313e-16console.log(Number.MAX_SAFE_INTEGER);                                                   // 9007199254740991console.log(Number.MAX_VALUE);                                                                // 1.7976931348623157e+308console.log(Number.MIN_SAFE_INTEGER);                                                    // -9007199254740991console.log(Number.MIN_VALUE);               // 5e-324console.log(Number.NaN);                          // NaNconsole.log(Number.NEGATIVE_INFINITY);  // -Infinityconsole.log(Number.POSITIVE_INFINITY);   // Infinity
   console.log(NaN);                 // NaNconsole.log(typeof Infinity);   // number// console.log(NEGATIVE_INFINITY);  // ReferenceError
   Number.prototype.double = function (){
   return this.valueOf() * 2;}console.log((20).double().double());  // 80

</script></body><html>