JavaScript 2025 · Strings
Insert values into a string
Use backticks and ${} to build strings, including multi-line ones.
const message = `Hello, ${user.name}! You have ${count} new messages.`;
Official JavaScript 2025 documentation
JavaScript 2025 · Strings
Use backticks and ${} to build strings, including multi-line ones.
const message = `Hello, ${user.name}! You have ${count} new messages.`;
Official JavaScript 2025 documentation
Was this page helpful?