You can insert, or interpolate variable values into a string by using template literals
Syntax
- A template literal is enlosed by
``, or backticks
> note that this is different from the regular single quotation marks ''
- *Inside the template literal, placeholders are used to insert variables
> a placeholder is denoted by ${}
ex)
let myName = 'Peter';
console.log(`My name is ${myName}.`);
// Prints: My name is Peter.