에이전트 8종(대화형/프로그래머 C·S/디자이너/설계자/기획자/QA/PD/PM)에게 [공통 기본 능력 + 롤별 Specialty] 2층으로 지식을 주입하기 위한 재분류. 문서 내용·포맷은 무수정, 폴더 이동만 (6,372개 문서 수 보존 확인). - Topic_Programming → Domain_Programming (내부 구조 보존) - Topic_Graphic → Domain_Design - Topic_Business → Domain_Product - Topic_General → Domain_General - _Common 신설: Math(구 Topic_Math_Specialty), Reasoning(구 General/From_Thinking & Reasoning), Reasoning_Creativity(구 General/From_창의성), Communication(Poetic_Blog_Writing + From_writing) - 타 도메인의 From_* 폴더는 유지 (출처 표기일 뿐, 이미 도메인에 맞게 분류된 문서) - 빈 폴더 정리 (memory/procedures) - 에이전트→폴더 매핑은 workspace의 .astra/agent-knowledge-map.json (9개 에이전트) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
5.5 KiB
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-assignment | JavaScript Assignment | Frontend | draft | conceptual |
|
B | 0.87 | 2026-06-23 | 2026-06-23 |
|
|
JavaScript Assignment
🎯 한 줄 통찰 (One-line insight)
Assignment operators assign values to variables — = for a plain assignment and compound forms (+=, -=, *=, **=, /=, %=) plus logical forms (&&=, ||=, ??=) for assign-and-operate in one step. [S1]
🧠 핵심 개념 (Core concepts)
- Assignment operators assign values — they assign values to JavaScript variables. [S1]
- Compound assignment — arithmetic compound operators combine an operation with assignment, e.g.
x += yis the same asx = x + y. [S1] - Logical assignment —
&&=,||=, and??=assign conditionally based on truthiness/falsiness/nullishness. [S1] - 8 falsy values —
false,0,-0,0n,""(empty strings),null,undefined, andNaNare falsy. [S1] - Truthy surprises —
"0","false",[], and{}are truthy even though they look "empty". [S1] - Spread
...— the...operator splits iterables into individual elements. [S1]
🧩 추출된 패턴 (Extracted patterns)
- Mutate in place — apply an operation to a variable and store back with one compound operator (
x += 5). [S1] - Conditional assignment —
x ??= 10assigns only whenxis null/undefined;x ||= 10when falsy;x &&= 10when truthy. [S1] - Falsy check awareness — remember
"0"and"false"strings (and[]/{}) are truthy when writing conditions. [S1]
📖 세부 내용 (Details)
JavaScript Assignment Operators [S1]
Assignment operators assign values to JavaScript variables. Using x = 10 and y = 5 for the examples below, the result column shows the value after applying the operator:
| Operator | Example | Same As | Result |
|---|---|---|---|
| = | x = y | x = y | x = 5 |
| += | x += y | x = x + y | x = 15 |
| -= | x -= y | x = x - y | x = 5 |
| *= | x *= y | x = x * y | x = 50 |
| **= | x **= y | x = x ** y | x = 100000 |
| /= | x /= y | x = x / y | x = 2 |
| %= | x %= y | x = x % y | x = 0 |
The = Operator [S1]
let x = 10;
The += Operator [S1]
let x = 10;
x += 5;
The -= Operator [S1]
let x = 10;
x -= 5;
*The = Operator [S1]
let x = 10;
x *= 5;
**The = Operator [S1]
let x = 10;
x **= 5;
The /= Operator [S1]
let x = 10;
x /= 5;
The %= Operator [S1]
let x = 10;
x %= 5;
Logical Assignment Operators [S1]
The &&= Operator (Logical AND assignment):
let x = true;
let y = x &&= 10;
The ||= Operator (Logical OR assignment):
let x = false;
let y = x ||= 10;
The ??= Operator (Nullish Coalescing assignment):
let x;
x ??= 10;
The 8 FALSY Values [S1]
The following values are falsy: false, 0, -0, 0n, "" / '' / `` (empty strings), null, undefined, and NaN.
These are TRUTHY [S1]
The following values are truthy: "0" (string), "false" (string), [] (empty array), and {} (empty object).
The Spread (...) Operator [S1]
The ... operator splits iterables into individual elements.
🛠️ 적용 사례 (Applied in summary)
The page's own snippets are the canonical applied examples — each compound operator demonstrated against let x = 10, and the logical-assignment operators shown against boolean/undefined seeds. No external project/commit applications found in the source.
💻 코드 패턴 (Code patterns)
Compound arithmetic assignment:
let x = 10;
x += 5;
Nullish-coalescing assignment (only assigns when null/undefined):
let x;
x ??= 10;
Logical OR assignment (assigns when falsy):
let x = false;
let y = x ||= 10;
⚖️ 모순 및 업데이트 (Contradictions & updates)
No contradictions found in the source. Worth noting: "0", "false", [], and {} are truthy despite intuition, which the source explicitly flags.
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
- 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
- 신뢰 점수: 0.87
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: JavaScript Tutorial
- 관련 개념: JavaScript Operators, JavaScript Arithmetic, JavaScript Comparisons, JavaScript Types
- 참조 맥락: Referenced whenever updating a variable's value or doing conditional/defaulting assignment.
📚 출처 (Sources)
- [S1] W3Schools — JavaScript Assignment — https://www.w3schools.com/js/js_assignment.asp
📝 변경 이력 (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "JavaScript Assignment" page (Astra wiki-curation, P-Reinforce v3.1 format).