An escape sequence is used to represent special characters that cannot be typed directly, such as newline, tab, or quotes. For example, \n
represents a newline, \t
represents a tab space, and \"
represents a double quote. Example:
This will print “Hello” on one line and “World” on the next.