Quotes are not the only characters that can be escaped inside a string. There are two reasons to use escaping characters:
We learned this in the previous challenge.
Code | Output |
---|---|
\' | single quote |
\" | double quote |
\\ | backslash |
\n | newline |
\r | carriage return |
\t | tab |
\b | word boundary |
\f | form feed |
Note that the backslash itself must be escaped in order to display as a backslash.