2
Whenever you need to write something very soon in a string in Javascript I need to concatenate, something like:
var str = 'foo bar foo bar foo bar foo bar foo bar foo bar' +
'foo bar foo bar foo bar foo bar foo bar foo bar' +
'foo bar foo bar foo bar foo bar foo bar foo bar' +
'foo bar foo bar foo bar foo bar foo bar foo bar' +
'foo bar foo bar foo bar foo bar foo bar foo bar'
;
However having to create quotation marks ("
) or apostrophe '
, it is possible to break a string without concatenating?
Related: I can answer my own question? and Accept Your Own Answers
– Guilherme Nascimento
Duplicate? -> http://answall.com/q/4000/129
– Sergio
@Sergio I believe so, I just didn’t find the other one because of the title.
– Guilherme Nascimento