String literals cannot span multiple lines in JavaScript. You need to either explicitly continue each line with the following:
var foo = "The quick brown fox\ jumped over the lazy\ dog";
Or combine string literals:
var foo = "The quick brown fox " + "jumped over the lazy " + "dog";
I personally prefer the latter, as you will be able to backtrack it more intelligently, without paying attention to the spaces inside the line, since
var foo = "asdf \ bar";
will result in a line like "asdf bar ;.
source share