Строка интерполяция JavaScript
const age = 3
console.log(`I'm ${age} years old!`)
Drab Dogfish
const age = 3
console.log(`I'm ${age} years old!`)
`string text`
`string text line 1
string text line 2`
`string text ${expression} string text`
tag`string text ${expression} string text`
const name = 'JavaScript';
console.log(`I love ${name}`); // I Love JavaScript
/*
The template string is indicated with a dollar sign and curly brackets
(${expression}) inside the backtick symbol.
*/
//Template String
const name = 'Muhammad Shahnewaz';
const result = `${name} is a good boy`;
console.log(result); //Muhammad Shahnewaz is a good boy