Double-quoted strings support the full range of escape sequences, as shown below:
\aBell/alert (0x07)\bBackspace (0x08)\eEscape (0x1b)\fFormford (0x0c)\nNewline (0x0a)\rReturn (0x0d)\sSpace (0x20)\tTab (0x09)\vVertical tab (0x0b)
For single-quoted strings, two consecutive backslashes are replaced by a single backslash, and a backslash followed by a single quote becomes a single quote:
'escape using "\\"' -> escape using "\"
'That\'s right' -> That's right