1var animal = "cow";
2var str=`The ${animal} jumped over the moon`; // string interpolation
1`string text`
2
3`string text line 1
4 string text line 2`
5
6`string text ${expression} string text`
7
8tag`string text ${expression} string text`
1// TEMPLATE LITERALS example
2console.log(`Hi, I'm ${p.name}! Call me "${p.nn}".`);
1`string text`
2
3`string text line 1
4 string text line 2`
5
6`string text ${expression} string text`
7
8tag `string text ${expression} string text`
9
1`string text`
2
3`string text line 1
4 string text line 2`
5
6`string text ${expression} string text`
7
8tag`string text ${expression} string text`
9