Use template literals for string interpolation
const name = 'World';
const greeting = `Hello, ${name}!`;
console.log(greeting); // "Hello, World!"const user = { firstName: 'Alice', age: 30 };
const message = `Welcome ${user.firstName}! You are ${user.age} years old.`;
console.log(message);const html = `
<div class="card">
<h1>${title}</h1>
<p>${content}</p>
</div>
`;const items = ['apple', 'banana', 'orange'];
const list = `Total items: ${items.length}, first: ${items[0]}`;
// "Total items: 3, first: apple"Avoid string concatenation with + operator
// DON'T DO THIS
var greeting = 'Hello, ' + name + '!';✓ Works in all modern browsers (ES6+)