javascript multiline var 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
// OPTION 1
var MultilineString = `This
is
a multiline
string`; // Note: use the template quotation marks above the tab key
// OPTION 2
var MultilineString = 'This \n\
is \n\
a multiline \n\
string'; // Note: use the "\n\" as a newline character