interpolation string javascript with new line code example
Example 1: js string concatenation es6
let str=`JavaScript first appeared ${a+b} years ago. Wow!`;
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}` );