OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Creating multiline strings in JavaScript

  • Thread starter Thread starter Newy
  • Start date Start date
N

Newy

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

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

<p>I have the following code in Ruby. I want to convert this code into JavaScript. What is the equivalent code in JS?</p>
<pre><code>text = <<"HERE"
This
Is
A
Multiline
String
HERE
</code></pre>
 

Latest posts

Top