Using Some Fancy Characters
| Advanced |
You may not need to know about the special fancy characters known as escape sequences (or escape characters), but they sure are useful—and fun! Strictly speaking, it’s not necessary to learn about escape sequences to learn how to program. But most languages use them, and they make some tasks much easier. |
All the JavaScript escape sequences begin with a backslash (\).
| Escape Sequence | Meaning |
| \b | Backspace |
| \t | Tab |
| \n | New line |
| \f | Form feed |
| \h | Hexadecimal sequence |
| \r | Carriage return |
| \u | Unicode sequence (see http://www.unicode.org for more information about Unicode) |
| \” | Double quote |
| \’ | Single quote |
| \\ | Backslash (\) |
Popularity: 3% [?]













last comments