Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript multiline string

    // 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);
Source by codetogo.io #
 
PREVIOUS NEXT
Tagged: #javascript #multiline #string
ADD COMMENT
Topic
Name
5+7 =