Template Literals
JS · Stringssyntax
`text ${expression} text`example
const item = "coffee";
const price = 4.5;
console.log(`One ${item} costs $${price.toFixed(2)}.`);
const multiline = `Line one
Line two
Line three`;
console.log(multiline);output
"One coffee costs $4.50."
"Line one\nLine two\nLine three"Note Backtick strings support embedded expressions and multiline content without escape characters.