Special Characters (escape sequence) : Introduction « String « JavaScript Tutorial






A backslash character (\) creates special characters.

Escape SequenceCharacter
\bBackspace
\fForm feed
\nNewline
\rCarriage return
\tTab
\'Single quote
\"Double quote
\\Backslash
\XXXCharacter represented by three octal digits XXX (0 to 377)
\XXCharacter represented by two hexadecimal digits XX (00 to FF)
\uXXXXUnicode character represented by four hexadecimal digits.


6.1.Introduction
6.1.1.The String Type
6.1.2.String() Object
6.1.3.Special Characters (escape sequence)