You can use string interpolation to insert the value of a variable into the middle of a string.
const name = 'Megan';
console.log('Hi! My name is ' + name); // 'Hi! My name is Megan'Starting with ES6, you can do string interpolation using template strings. Use backticks (`) instead of single quotes (') to wrap your string.
const name = 'Megan';
console.log(`Hi! My name is ${name}`); // 'Hi! My name is Megan'