1let soMany = 10;
2console.log(`This is ${soMany} times easier!`);
3// "This is 10 times easier!
1//
2
3const firstName = 'john';
4const lastName = 'smith';
5
6const output = `name: ${firstName}, surname: ${lastName}`;
7// name: john, surname: smith
1const string = 'This is a string.';
2const message = `${string} This is also a string.`;
1var my_name = 'John';
2var s = `hello ${my_name}, how are you doing`;
3console.log(s); // prints hello John, how are you doing
4