JavaScript Number Properties

Beginner
⏱️ 6 min read
📚 Updated: Jul 2026
🎯 8 Tutorials
Static constants

What You’ll Learn

JavaScript Number properties are static constants that describe floating-point limits and precision. This hub indexes 8 tutorials with examples and try-it labs.

01

Static

On Number

02

Read-only

Constants

03

EPSILON

Near 1

04

Equality

Tolerances

05

Safe

Baseline

06

8 guides

Growing

Introduction

JavaScript Number static properties are read-only constants on Number itself — for example Number.EPSILON, Number.MAX_SAFE_INTEGER, Number.POSITIVE_INFINITY, and Number.NaN. Access them as Number.NaN, not on a number instance like (1).NaN.

Start with Number.EPSILON to learn why floating-point math needs a tiny tolerance near magnitude 1 — and when a larger tolerance is safer.

👀 Not-A-Number

NaN never equals itself — detect it with Number.isNaN:

Number.NaN → NaN Number.NaN === Number.NaN → false Number.isNaN(Number.NaN) → true

Number Properties Index

Search by property name or browse by category. Each tutorial includes syntax, five try-it examples, and FAQs.

Static Properties

8 tutorials

Read-only constants on Number itself — floating-point limits, special values, and precision helpers.

PropertyDescriptionTutorial
EPSILONStatic constant: the difference between 1 and the next representable Number — used as a tiny tolerance near magnitude 1.Open
MAX_VALUEStatic constant: the largest positive finite Number (~1.8e+308) — larger results become Infinity.Open
MIN_VALUEStatic constant: the smallest positive Number (~5e-324) — smaller results underflow toward 0.Open
MAX_SAFE_INTEGERStatic constant: the largest exact integer Number (2^53 − 1) — beyond it, use BigInt.Open
MIN_SAFE_INTEGERStatic constant: the smallest exact integer Number (−(2^53 − 1)) — below it, use BigInt.Open
POSITIVE_INFINITYStatic constant: positive Infinity — same as global Infinity; appears after overflow past MAX_VALUE.Open
NEGATIVE_INFINITYStatic constant: negative Infinity — same as -Infinity; appears after overflow past -MAX_VALUE.Open
NaNStatic constant: Not-A-Number — same as global NaN; never equals itself (use Number.isNaN).Open

❓ Frequently Asked Questions

Number properties are static constants on the Number object — values you read, not functions you call. Examples: Number.EPSILON, Number.MAX_SAFE_INTEGER, Number.POSITIVE_INFINITY, and Number.NaN.
Methods are functions: (5).toFixed(2) or Number.parseFloat(s). Properties are constants you read without parentheses: Number.NaN. You do not write Number.NaN().
Start with Number.EPSILON for floating-point equality, Number.MAX_VALUE / MIN_VALUE for magnitude limits, MAX_SAFE_INTEGER / MIN_SAFE_INTEGER for exact integers, POSITIVE_INFINITY / NEGATIVE_INFINITY for signed Infinity, and Number.NaN for Not-A-Number.
Built-in static Number properties such as Number.EPSILON and Number.NaN are not writable, not enumerable, and not configurable in modern engines.
Open the Number Methods hub for toString(), toFixed(), isFinite(), isSafeInteger(), parseInt(), parseFloat(), and more.
Open EPSILON, MAX_VALUE, MIN_VALUE, MAX_SAFE_INTEGER, MIN_SAFE_INTEGER, POSITIVE_INFINITY, NEGATIVE_INFINITY, or NaN from the index below for syntax, five try-it labs each, and FAQs.

Start with EPSILON

Learn floating-point equality near magnitude 1.

EPSILON tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

6 people found this page helpful