1

is there a smart way in js to insert mixedsingle and double quotes, like python

"""string"""

syntax? Or similar stuff, which I believe is present in Perl or PHP.

Facundo Casco
  • 9,439
  • 5
  • 42
  • 63
Paolo
  • 2,407
  • 5
  • 30
  • 43
  • See http://stackoverflow.com/questions/2953682/javascript-here-doc-or-other-large-quoting-mechanism for some interesting workarounds – sync Oct 17 '12 at 13:47

2 Answers2

0

No, you're stuck with escaping the quotes.

Johanna Larsson
  • 10,021
  • 6
  • 35
  • 49
0

Yea you have to use " + string + " or "string"

electrikmilk
  • 923
  • 1
  • 10
  • 23