Skip to content

Challenge Escape Sequences in Strings

SaintPeter edited this page · 1 revision
Clone this wiki locally

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.

Something went wrong with that request. Please try again.