--- id: javascript-number-properties title: "JavaScript Number Properties" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["Number properties", "Number.MAX_VALUE", "Number.EPSILON", "MAX_SAFE_INTEGER", "POSITIVE_INFINITY", "Number.NaN"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["javascript", "js", "web", "frontend", "w3schools", "number", "constants"] raw_sources: ["https://www.w3schools.com/js/js_number_properties.asp"] applied_in: [] github_commit: "" --- # [[JavaScript Number Properties]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) JavaScript Number properties are static constants on the `Number` object that expose the limits of the language's numeric type β€” its largest, smallest, safe-integer bounds, infinities, and the not-a-number value. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Number properties are static** β€” they belong to the `Number` object itself and can only be accessed as `Number.PROPERTY` (for example `Number.MAX_VALUE`), never through a number variable or instance. [S1] - **EPSILON** is the difference between 1 and the smallest floating-point number greater than 1. [S1] - **MAX_VALUE / MIN_VALUE** are the largest and lowest possible numbers in JavaScript. [S1] - **MAX_SAFE_INTEGER / MIN_SAFE_INTEGER** are `2⁡³ βˆ’ 1` and `βˆ’(2⁡³ βˆ’ 1)` β€” the bounds of integers that can be represented exactly. [S1] - **POSITIVE_INFINITY / NEGATIVE_INFINITY** are returned on numeric overflow (for example `1 / 0` and `-1 / 0`). [S1] - **NaN** ("Not a Number") is returned by invalid arithmetic such as dividing a number by a non-numeric string. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Static access only** β€” reach a property as `Number.MAX_VALUE`; reading the same name off a variable (`x.MAX_VALUE`) yields `undefined`. [S1] - **Overflow β†’ Infinity** β€” operations that exceed the representable range produce `Infinity` rather than throwing an error. [S1] - **Invalid arithmetic β†’ NaN** β€” mixing a number with a non-numeric string in arithmetic produces `NaN`. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) Number properties belong to the JavaScript `Number` object. These properties can only be accessed as `Number.MAX_VALUE` (statically), not on a variable. [S1] **JavaScript EPSILON** β€” the difference between 1 and the smallest floating-point number greater than 1: [S1] ```javascript let x = Number.EPSILON; ``` **JavaScript MAX_VALUE** β€” the largest possible number in JavaScript: [S1] ```javascript let x = Number.MAX_VALUE; ``` **Number Properties Cannot be Used on Variables** β€” accessing a property name on a number variable returns `undefined`: [S1] ```javascript let x = 6; x.MAX_VALUE ``` **JavaScript MIN_VALUE** β€” the lowest possible number in JavaScript: [S1] ```javascript let x = Number.MIN_VALUE; ``` **JavaScript MIN_SAFE_INTEGER** β€” `βˆ’(2⁡³ βˆ’ 1)`: [S1] ```javascript let x = Number.MIN_SAFE_INTEGER; ``` **JavaScript MAX_SAFE_INTEGER** β€” `2⁡³ βˆ’ 1`: [S1] ```javascript let x = Number.MAX_SAFE_INTEGER; ``` **JavaScript POSITIVE_INFINITY** β€” accessed as a property: [S1] ```javascript let x = Number.POSITIVE_INFINITY; ``` `POSITIVE_INFINITY` is returned on overflow: [S1] ```javascript let x = 1 / 0; ``` **JavaScript NEGATIVE_INFINITY** β€” accessed as a property: [S1] ```javascript let x = Number.NEGATIVE_INFINITY; ``` `NEGATIVE_INFINITY` is returned on overflow: [S1] ```javascript let x = -1 / 0; ``` **JavaScript NaN β€” Not a Number** β€” accessed as a property: [S1] ```javascript let x = Number.NaN; ``` `NaN` also results from invalid arithmetic, such as dividing by a non-numeric string: [S1] ```javascript let x = 100 / "Apple"; ``` **Property summary table** [S1] | Property | Description | |----------|-------------| | `Number.EPSILON` | The difference between 1 and the smallest floating-point number greater than 1 | | `Number.MAX_VALUE` | The largest possible number in JavaScript | | `Number.MIN_VALUE` | The lowest possible number in JavaScript | | `Number.MAX_SAFE_INTEGER` | The maximum safe integer (`2⁡³ βˆ’ 1`) | | `Number.MIN_SAFE_INTEGER` | The minimum safe integer (`βˆ’(2⁡³ βˆ’ 1)`) | | `Number.POSITIVE_INFINITY` | Returned on overflow (e.g. `1 / 0`) | | `Number.NEGATIVE_INFINITY` | Returned on negative overflow (e.g. `-1 / 0`) | | `Number.NaN` | Not a Number (e.g. `100 / "Apple"`) | ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's own snippets are the canonical applied examples β€” accessing each constant via `Number.*` and demonstrating overflow (`1 / 0`) and invalid arithmetic (`100 / "Apple"`). No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Access a static Number property (language: JavaScript): ```javascript let x = Number.MAX_VALUE; let y = Number.MAX_SAFE_INTEGER; ``` Trigger Infinity through overflow: ```javascript let x = 1 / 0; let y = -1 / 0; ``` Produce NaN through invalid arithmetic: ```javascript let x = 100 / "Apple"; ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.88 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[JavaScript Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[JavaScript Numbers]], [[JavaScript Number Methods]], [[JavaScript BigInt]], [[JavaScript Bitwise]] - **μ°Έμ‘° λ§₯락:** Referenced when checking numeric limits, detecting overflow, or guarding against unsafe integers. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” JavaScript Number Properties β€” https://www.w3schools.com/js/js_number_properties.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "JavaScript Number Properties" page (Astra wiki-curation, P-Reinforce v3.1 format).