Newline (Escape sequence)

A means of introducing line breaks into string content texts.

Availability:

ECMAScript edition - 2

The newline escape sequence \n can be placed in string literals if you want to break the output text over more than one line.

Warnings:

See also:Escape sequence (\), Line terminator

Cross-references:

ECMA 262 edition 2 - section - 7.2

ECMA 262 edition 2 - section - 7.7.4

ECMA 262 edition 3 - section - 7.3