multi line strings 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 multiline string
const multilineString = `This
is
a
multiline
string
in
javascript`;
Example 3: javascript string in multiple lines
var html = `
<div>
<span>Some HTML here</span>
</div>
`;