Creating multiline strings in JavaScript
Asked 07 September, 2021
Viewed 2.9K times
  • 63
Votes

I have the following code in Ruby. I want to convert this code into JavaScript. What is the equivalent code in JS?

text = <<"HERE"
This
Is
A
Multiline
String
HERE

30 Answer