template literals s code example
Example 1: javascript string interpolation
var animal = "cow";
var str=`The ${animal} jumped over the moon`; // string interpolation
Example 2: how to add a new line in template literal javascript
to add a new line forget \n
... simply use a new line in the definition
let a = "a", b="b"
console.log(
`${a}
${b}` );