Skip to content

Challenge Escape Sequences In Strings

Quincy Larson edited this page Aug 20, 2016 · 1 revision

Challenge Escape Sequences in Strings

Quotes are not the only characters that can be escaped inside a string. Here is a table of common escape sequences:

Code Output
' single quote
" double quote
\ backslash
\n new line
\r carriage return
\t tab
\b backspace
\f form feed

Note that the backslash itself must be escaped in order to display as a backslash.

Clone this wiki locally