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.
This commit is contained in:
Antigravity Agent
2026-07-05 00:39:13 +09:00
parent 9148c358d0
commit e9cbf23ab5
1356 changed files with 0 additions and 12831 deletions
@@ -0,0 +1,143 @@
---
id: javascript-string-templates
title: "JavaScript String Templates"
category: "Frontend"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["template strings", "template literals", "back-tics", "string interpolation", "ES6 strings"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.89
created_at: 2026-06-23
updated_at: 2026-06-23
review_reason: ""
merge_history: []
tags: ["javascript", "js", "web", "frontend", "w3schools", "template-literals", "interpolation", "es6"]
raw_sources: ["https://www.w3schools.com/js/js_string_templates.asp"]
applied_in: []
github_commit: ""
---
# [[JavaScript String Templates]]
## 🎯 한 줄 통찰 (One-line insight)
Template strings use back-ticks instead of quotes, letting you embed both quote types, write multiline text, and interpolate variables and expressions with `${...}` — an ES6 feature supported in all modern browsers since June 2017. [S1]
## 🧠 핵심 개념 (Core concepts)
- **Back-tics define the string** — template strings use back-ticks (`` ` ``) rather than the quotes (`"`) to define a string. [S1]
- **Both quote types allowed inside** — template strings allow both single and double quotes inside a string. [S1]
- **Multiline strings** — template strings allow multiline strings. [S1]
- **Interpolation** — template strings allow variables in strings using the `${...}` syntax. [S1]
- **Expression substitution** — template strings allow interpolation of expressions in strings. [S1]
- **ES6 feature** — template strings are an ES6 feature; ES6 is fully supported in all modern browsers since June 2017. [S1]
## 🧩 추출된 패턴 (Extracted patterns)
- **Interpolate variables** — drop variables straight into text with `${variable}` instead of concatenating with `+`. [S1]
- **Interpolate expressions** — compute inline, e.g. `${(price * (1 + VAT)).toFixed(2)}`. [S1]
- **Build HTML templates** — assemble HTML by interpolating values and looping to append list items. [S1]
## 📖 세부 내용 (Details)
**Back-Tics Syntax**
Template strings use back-ticks (`` ` ``) rather than the quotes (`"`) to define a string. [S1]
```javascript
let text = `Hello World!`;
```
**Quotes Inside Strings**
Template strings allow both single and double quotes inside a string. [S1]
```javascript
let text = `He's often called "Johnny"`;
```
**Multiline Strings**
Template strings allow multiline strings. [S1]
```javascript
let text =
`The quick
brown fox
jumps over
the lazy dog`;
```
**Interpolation**
Template strings allow variables in strings, using the `${...}` interpolation syntax. [S1]
```javascript
let firstName = "John";
let lastName = "Doe";
let text = `Welcome ${firstName}, ${lastName}!`;
```
**Expression Substitution**
Template strings allow interpolation of expressions in strings. [S1]
```javascript
let price = 10;
let VAT = 0.25;
let total = `Total: ${(price * (1 + VAT)).toFixed(2)}`;
```
**HTML Templates**
Template strings can be used to build HTML by interpolating values and looping over data. [S1]
```javascript
let header = "Template Strings";
let tags = ["template strings", "javascript", "es6"];
let html = `<h2>${header}</h2><ul>`;
for (const x of tags) {
html += `<li>${x}</li>`;
}
html += `</ul>`;
```
**Browser Support**
Template strings are an ES6 feature, fully supported in all modern browsers since June 2017. [S1]
| Browser | Chrome | Edge | Firefox | Safari | Opera |
|---------|--------|------|---------|--------|-------|
| Version | 51 | 15 | 54 | 10 | 38 |
| Date | May 2016 | Apr 2017 | Jun 2017 | Sep 2016 | Jun 2016 |
## 🛠️ 적용 사례 (Applied in summary)
The page's own snippets are the canonical applied examples — basic back-tick strings, embedded quotes, multiline text, variable and expression interpolation, and an HTML-building loop. No external project/commit applications found in the source.
## 💻 코드 패턴 (Code patterns)
Interpolate variables:
```javascript
let text = `Welcome ${firstName}, ${lastName}!`;
```
Interpolate an expression:
```javascript
let total = `Total: ${(price * (1 + VAT)).toFixed(2)}`;
```
Build an HTML list:
```javascript
let html = `<h2>${header}</h2><ul>`;
for (const x of tags) {
html += `<li>${x}</li>`;
}
html += `</ul>`;
```
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
No contradictions found in the source.
## ✅ 검증 상태 및 신뢰도
- **상태:** draft
- **검증 단계:** conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
- **신뢰 점수:** 0.89
- **중복 검사 결과:** 신규 생성 (New discovery)
## 🔗 지식 그래프 (Knowledge Graph)
- **상위/루트:** [[JavaScript Tutorial]]
- **관련 개념:** [[JavaScript Strings]], [[JavaScript String Methods]], [[JavaScript ES6]], [[JavaScript Variables]]
- **참조 맥락:** Referenced whenever building dynamic text or HTML from variables, replacing `+` concatenation.
## 📚 출처 (Sources)
- [S1] W3Schools — JavaScript String Templates — https://www.w3schools.com/js/js_string_templates.asp
## 📝 변경 이력 (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "JavaScript String Templates" page (Astra wiki-curation, P-Reinforce v3.1 format).