var animal = "cow"; var str=`The ${animal} jumped over the moon`; // string interpolation
// TEMPLATE LITERALS example console.log(`Hi, I'm ${p.name}! Call me "${p.nn}".`);
`string text` `string text line 1 string text line 2` `string text ${expression} string text` tag`string text ${expression} string text`
`string text` `string text line 1 string text line 2` `string text ${expression} string text` tag `string text ${expression} string text`
var totn_string = ''; console.log(totn_string.concat('Tech','On','The','Net')); //The following will be output to the web browser console log: TechOnTheNet