| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Errors/String_literal_EOL | [Back] [Original] |
Get to know MDN better
SyntaxError: Unterminated string constant (Edge)
SyntaxError: unterminated string literal (Firefox)
SyntaxError
JavaScript
var longString = 'This is a very long string which needs
to wrap across multiple lines because
otherwise my code is unreadable.';
// SyntaxError: unterminated string literal
+ +
var longString =
"This is a very long string which needs " +
"to wrap across multiple lines because " +
"otherwise my code is unreadable.";
"\" ()
var longString =
"This is a very long string which needs \
to wrap across multiple lines because \
otherwise my code is unreadable.";
var longString = `This is a very long string which needs
to wrap across multiple lines because
otherwise my code is unreadable.`;
| Web Proxy Viewer | New URL | Original Page |