You can define multiline string literals using the ” character followed by line terminator.
var str = "This is a \
very lengthy \
But if you have a space after the ” character, the code will look exactly the same, but it will raise a SyntaxError.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.