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
  • 10,065
  • 8
  • 42
  • 63
Paolo
  • 2,461
  • 5
  • 31
  • 45
  • 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,531
  • 6
  • 39
  • 50
0

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

electrikmilk
  • 1,013
  • 1
  • 11
  • 23