Skip to content
JS
JavaScript error

SyntaxError

The JavaScript error "string literal contains an unescaped line break" occurs when there is an unterminated string literal somewhere. String literals must be enclosed by single (') or double (") quotes and cannot split across multiple lines.

Reference entryJavaScriptFetched
SyntaxError: Invalid or unexpected token (V8-based)
As listed by MDN Web Docs
SyntaxError: '' string literal contains an unescaped line break (Firefox)
As listed by MDN Web Docs
SyntaxError: Unexpected EOF (Safari)
As listed by MDN Web Docs
Category
SyntaxError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.