Answers for "js multiline string with variables"

8

javascript multiline string

const multilineString = `This
is
a
multiline
string
in
javascript`;
Posted by: Guest on August-14-2020
0

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);
Posted by: Guest on February-11-2021
0

js multiline string with variables

const htmlString = `${user.name} liked your post about strings`;
Posted by: Guest on February-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language