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 | newline |
\r | carriage return |
\t | tab |
\b | backspace |
\f | form feed |
Home JavaScript Escape Sequences in Strings
By LabW3 At 00:38 0
Code | Output |
---|---|
\' | single quote |
\" | double quote |
\\ | backslash |
\n | newline |
\r | carriage return |
\t | tab |
\b | backspace |
\f | form feed |