The backslash (\) is used to quote special characters. For example, \n generates a new line. The backslash also is used to "turn off" the special meanings of the dollar sign, quotation marks, square brackets, and curly braces.