JavaScript Number Properties
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.
Static
On Number
Read-only
Constants
EPSILON
Near 1
Equality
Tolerances
Safe
Baseline
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 Properties Index
Search by property name or browse by category. Each tutorial includes syntax, five try-it examples, and FAQs.
Static Properties
8 tutorialsRead-only constants on Number itself — floating-point limits, special values, and precision helpers.
| Property | Description | Tutorial |
|---|---|---|
EPSILON | Static constant: the difference between 1 and the next representable Number — used as a tiny tolerance near magnitude 1. | Open |
MAX_VALUE | Static constant: the largest positive finite Number (~1.8e+308) — larger results become Infinity. | Open |
MIN_VALUE | Static constant: the smallest positive Number (~5e-324) — smaller results underflow toward 0. | Open |
MAX_SAFE_INTEGER | Static constant: the largest exact integer Number (2^53 − 1) — beyond it, use BigInt. | Open |
MIN_SAFE_INTEGER | Static constant: the smallest exact integer Number (−(2^53 − 1)) — below it, use BigInt. | Open |
POSITIVE_INFINITY | Static constant: positive Infinity — same as global Infinity; appears after overflow past MAX_VALUE. | Open |
NEGATIVE_INFINITY | Static constant: negative Infinity — same as -Infinity; appears after overflow past -MAX_VALUE. | Open |
NaN | Static constant: Not-A-Number — same as global NaN; never equals itself (use Number.isNaN). | Open |
❓ Frequently Asked Questions
Start with EPSILON
Learn floating-point equality near magnitude 1.
6 people found this page helpful
