Special Characters
Special characters can added to text strings in JavaScript by using the backslash character.
The following table lists the special characters that can be added to a text string using the backslash character:
| Code | Outputs | 
|---|---|
| \' | single quote ( ' ) | 
| \" | double quote ( " ) | 
| \& | ampersand ( & ) | 
| \\ | backslash ( \ ) | 
| \n | new line | 
| \r | carriage return | 
| \t | tab | 
| \b | backspace | 
| \f | form feed | 
