π ****Reference
π Chapter
Literal types
Template literals
- Template literals
- Template String
- ν
νλ¦Ώ λ¬Έμμ΄
- ν
νλ¦Ώ 리ν°λ΄
- λ°±ν± μ¬μ©
- Backtick
- ν
νλ¦Ώ 리ν°λ΄μ λ΄μ₯λ ννμμ νμ©νλ λ¬Έμμ΄ λ¦¬ν°λ΄μ΄λ€.
- μ¬λ¬ μ€λ‘ μ΄λ€μ§ λ¬Έμμ΄κ³Ό λ¬Έμ λ³΄κ° κΈ°λ₯μ μ¬μ©ν μ μλ€.
- μ΄μ λ²μ μ ES2015 μ¬μ λͺ
μΈμμλ "template strings" (ν
νλ¦Ώ λ¬Έμμ΄) λΌκ³ λΆλ € μλ€.
`${}`
`string text`
`string text line 1
string text line 2`
`string text ${expression} string text`
tag `string text ${expression} string text`
μμ