javascript multiline string

JavaScript
const multilineString = `This
is
a
multiline
string
in
javascript`;/*
  Use to format long strings without crossing ruler length
  or affecting string display. NOTE: use grave-accents/backticks: ` 
*/
function getLongString() {
  return `
    Bacon ipsum dolor amet boudin pastrami shankle ham fatback
    pork. Short ribs ham beef, filet mignon ball tip sirloin
    shankle t-bone drumstick. Ground round drumstick pancetta
    fatback alcatra.
  `;
}

function getDynamicMessage() {
  const personName = "Dave Dude";
  const whatever = (((1 + 2) * 3) / 4);
  return `
    Hello, ${personName}! Here's a very long string with
    some dynamic values in, such as: ${whatever}`; 
}// 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 charactervar myString = 'I feel like I write really bad javascript code' +
    'but who really cares, javascript is really weird anyway' +
    'after all you\'ve always got a lot to keep <strong>learning</strong>.'; 
    // Creating multi-line string
    var str = `<div class="content">
                  <h1>This is a heading</h1>
                  <p>This is a paragraph of text.</p>
               </div>`;
    
    // Printing the string
    document.write(str);const htmlString = `${user.name} liked your post about strings`;

Source

Also in JavaScript: