Tutorial Multiline String Variables in JavaScript
This works: var htmlString = " This is a string. "; This fails: var htmlSTring = " This is a string. "; Sometimes this...
https://iskablogs.blogspot.com/2014/03/tutorial-multiline-string-variables-in.html
This works:
var htmlString = "
This fails:
var htmlSTring = "
This is a string.
";
Sometimes this is desirable for readability.
Add backslashes to get it to work:
var htmlSTring = "
var htmlString = "
This is a string.
";This fails:
var htmlSTring = "
This is a string.
Sometimes this is desirable for readability.
Add backslashes to get it to work:
var htmlSTring = "
\
This is a string.\
";
This is a string.\