javascript template literaks code example
Example 1: template string in typescript
let lyrics = 'Never gonna give you up';
let html = `<div>${lyrics}</div>`;
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}` );