multi line variable javascript code example
Example 1: Multi-Line JavaScript
console.log(`i am a multiline
string
and it works
but not on all browsers
- yet
`);
Example 2: javascript variable with multiline text
let multilineText = `This
is
a
multiline
text`;
console.log(multilineText);
Example 3: js multiline string with variables
const htmlString = `${user.name} liked your post about strings`;