🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to JavaScript Notes
Topic #35

JS Number Properties

Number Properties

Col 1 Col 2
Number.EPSILON Number.MAX_VALUE Number.MIN_VALUE Number.MAX_SAFE_INTEGER Number.MIN_SAFE_INTEGER Number.POSITIVE_INFINITY Number.NEGATIVE_INFINITY Number.NaN

Note: See Also: Numbers Tutorial Number Methods Number Reference


JavaScript EPSILON

Number.EPSILON is the difference between the smallest floating point number greater than 1 and 1.

Example

let x = Number.EPSILON;

Note: Number.EPSILON is an ES6 feature. It does not work in Internet Explorer.


JavaScript MAX_VALUE

Number.MAX_VALUE is a constant representing the largest possible number in JavaScript.

Example

let x = Number.MAX_VALUE;

Note: Number Properties Cannot be Used on Variables Number properties belong to the JavaScript Number Object. These properties can only be accessed as Number.MAX_VALUE. Using x.MAX_VALUE, where x is a variable or a value, will return undefined:

Example

let x = 6;

x.MAX_VALUE

JavaScript MIN_VALUE

Number.MIN_VALUE is a constant representing the lowest possible number in JavaScript.

Example

let x = Number.MIN_VALUE;

Minimum and Maximum Safe Integers

ES6 added max and min properties to the Number object:

  • Number.MAX_SAFE_INTEGER
  • Number.MIN_SAFE_INTEGER

JavaScript MIN_SAFE_INTEGER

Number.MIN_SAFE_INTEGER represents the minimum safe integer in JavaScript.

Number.MIN_SAFE_INTEGER is -(253 - 1).

Example

let x = Number.MIN_SAFE_INTEGER;

JavaScript MAX_SAFE_INTEGER

Number.MAX_SAFE_INTEGER represents the maximum safe integer in JavaScript.

Number.MAX_SAFE_INTEGER is (253 - 1).

Example

let x = Number.MAX_SAFE_INTEGER;

JavaScript POSITIVE_INFINITY

Example

let x = Number.POSITIVE_INFINITY;

JavaScript NEGATIVE_INFINITY

Example

let x = Number.NEGATIVE_INFINITY;

JavaScript NaN - Not a Number

NaN is a JavaScript reserved word for a number that is not a legal number.

Examples

let x = Number.NaN;

Note: Safe integers are all integers from -(253 - 1) to +(253 - 1). This is safe: 9007199254740991. This is not safe: 9007199254740992.


Note: Complete JavaScript Reference For a complete reference to all JavaScript properties and methods, with full descriptions and many examples, go to: W3Schools' Full JavaScript Reference. The reference inludes all JavaScript updates from 1999 to 2025.

Want to go beyond the notes?

Join CodingNow 2.0's JavaScript course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

JS Number Properties – FAQs

Quick answers about learning JS Number Properties in JavaScript.

This free note from CodingNow 2.0 explains JS Number Properties in JavaScript — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every JavaScript topic on CodingNow 2.0, including JS Number Properties, is 100% free with no signup required.
With focused practice, most students grasp JS Number Properties in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now