7

I've tried splitting it into two lines:

const templateString = `this is my template 
                        string`

And I've also tried:

const templateString = `this is my template\n string`

But none of these work. The templateString still comes out as one line. How do you create multi-line template string?

reectrix
  • 7,999
  • 20
  • 53
  • 81

1 Answers1

-6

That would require a <br> tag. Your first attempt is the correct one, if you add the <br> tag.

enf0rcer
  • 545
  • 2
  • 11