Files
2nd/10_Wiki/Topic_Programming/Topic_JavaScript/JavaScript_Number_Properties.md
T
Antigravity Agent e9cbf23ab5 docs(10_Wiki): Dev 폴더 누락분 반영 — Topic_Programming으로 통합
이전 재구성 작업에서 Dev/ 폴더가 누락되었던 것을 반영.

- Dev/Topic_Programming(중첩 폴더, 78개)은 Dev 자체 최상위 폴더들
  (Architecture/Conventions/Engineering_Intelligence 등)과 완전 중복이라 제거.
- Dev 최상위 엔지니어링 지식 폴더(Architecture/Conventions/Engineering_Intelligence/
  Failure_Library/Generalized_Principles/Language/Pattern_Catalog/Platform_Guides/
  Subsystems, 77개)는 이미 Topic_Programming/Topic_Programming에 더 최신 버전이
  존재해 중복 제거(고유 콘텐츠 1개는 예외 처리하여 이동 보존).
- Dev의 W3Schools 언어 튜토리얼 폴더(Topic_C/CPP/CSS/CSharp/HOWTO/HTML/Java/
  JavaScript/PHP/Python/SQL/W3CSS, 1201개)는 전부 Topic_Programming 하위로 이동.
- 에이전트 운영 상태(.astra/docs)는 그대로 유지, 콘텐츠 폴더만 정리.
- Topic_Programming 최종 문서 수: 2784 → 3985.
2026-07-05 00:39:13 +09:00

6.1 KiB
Raw Blame History

id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
id title category status verification_status canonical_id aliases duplicate_of source_trust_level confidence_score created_at updated_at review_reason merge_history tags raw_sources applied_in github_commit
javascript-number-properties JavaScript Number Properties Frontend draft conceptual
Number properties
Number.MAX_VALUE
Number.EPSILON
MAX_SAFE_INTEGER
POSITIVE_INFINITY
Number.NaN
B 0.88 2026-06-23 2026-06-23
javascript
js
web
frontend
w3schools
number
constants
https://www.w3schools.com/js/js_number_properties.asp

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]

let x = Number.EPSILON;

JavaScript MAX_VALUE — the largest possible number in JavaScript: [S1]

let x = Number.MAX_VALUE;

Number Properties Cannot be Used on Variables — accessing a property name on a number variable returns undefined: [S1]

let x = 6;
x.MAX_VALUE

JavaScript MIN_VALUE — the lowest possible number in JavaScript: [S1]

let x = Number.MIN_VALUE;

JavaScript MIN_SAFE_INTEGER(2⁵³ 1): [S1]

let x = Number.MIN_SAFE_INTEGER;

JavaScript MAX_SAFE_INTEGER2⁵³ 1: [S1]

let x = Number.MAX_SAFE_INTEGER;

JavaScript POSITIVE_INFINITY — accessed as a property: [S1]

let x = Number.POSITIVE_INFINITY;

POSITIVE_INFINITY is returned on overflow: [S1]

let x = 1 / 0;

JavaScript NEGATIVE_INFINITY — accessed as a property: [S1]

let x = Number.NEGATIVE_INFINITY;

NEGATIVE_INFINITY is returned on overflow: [S1]

let x = -1 / 0;

JavaScript NaN — Not a Number — accessed as a property: [S1]

let x = Number.NaN;

NaN also results from invalid arithmetic, such as dividing by a non-numeric string: [S1]

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):

let x = Number.MAX_VALUE;
let y = Number.MAX_SAFE_INTEGER;

Trigger Infinity through overflow:

let x = 1 / 0;
let y = -1 / 0;

Produce NaN through invalid arithmetic:

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)

📚 출처 (Sources)

📝 변경 이력 (Change history)

  • 2026-06-23: Initial draft synthesized from the W3Schools "JavaScript Number Properties" page (Astra wiki-curation, P-Reinforce v3.1 format).