new line in template literal code example
Example 1: string interpolation javascript
const age = 3
console.log(`I'm ${age} years old!`)
Example 2: javascript string interpolation
var animal = "cow";
var str=`The ${animal} jumped over the moon`; // string interpolation
Example 3: 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}` );