Multiline String Assignment

admin

Administrator
Staff member
Does anyone know if it's possible to assign a string to a variable over multiple lines, but in one assignment? E.g.

var textstring = "This is the data
spread over
several
lines";

Obviously, this generates an "unterminated string constant" message...
 
Back
Top