Escape Sequences

by Michael Thomas

(Tutorial Home Page)

by Michael Thomas

(Tutorial Home Page)

Objectives (topics)

Topic Notes
Special Escape Sequences

Some of these may be on the test.

Escape code Desc Unicode
\n newline '\u000A'
\t tab '\u0009'
\b backspace '\u0008'
\r return '\u000D'
\f form feed '\u000C'
\\ backslash '\u005C'
\' single quote '\u0027'
\" double quote '\u0022'
'\ddd' octal char  
'\udddd' Unicode char