4

In Python, there are these triple quotation marks ('''), for multiple line strings, which is very useful. Is there any way to do this in javascript?

Ray Caballero
  • 435
  • 1
  • 7
  • 14
MatthewProSkils
  • 364
  • 2
  • 13

1 Answers1

8

You can use the template literal. Encase your strings in backticks (`)

For your reference, check: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

Ray Caballero
  • 435
  • 1
  • 7
  • 14