December 21, 2019

Escape sequences in JavaScript

Backslash and the following character form an escape sequence that represents special characters. Below a list of several useful escape sequences:

‘ - single quote
” - double quote
– - backslash
n - a new line
r - carriage return
t - tab

No comments:

Post a Comment