Breaking within a string statement can be done by the use of a backslash, ‘\’, at the end of the first line
Example:
And if you change to a new line when not within a string statement, then javaScript ignores break in line.
Example:
The above code is perfectly fine, though not advisable as it hampers debugging.