const multiLineString = `This is a string
that spans multiple
lines.`
console.log(multiLineString)
/*
This is a string
that spans multiple
lines.
*/
const a = 5
const b = 10
const result = `The sum of ${a} and ${b} is ${a + b}.`
console.log(result) // The sum of 5 and 10 is 15.
function greet(name) {
return `Hello, ${name}`
}
const message = `${greet('Bob')}! How are you?`
console.log(message) // Hello, Bob! How are you?