Template Literal
noun
say it: “TEM-plit LIT-er-ul” /ˈtɛmplɪt ˈlɪtərəl/
A JavaScript string in backticks that can hold ${...} values and span several lines.
What is Template Literal in JavaScript?
Template Literal — A string enclosed by backticks that supports interpolation and multiple lines.
const item = "tea";
const message = `Order: ${item}`;
In a sentence
- “The template literal `Total: ${total}` builds the message in one piece.”
Level: Novice · More JavaScript terms at this level
Updated