HI WELCOME TO SIRIS

JavaScript Special Characters

JavaScript support special characters to text string using backslash Sign(\).
Following table list are JavaScript special characters that can add to text string with the backslash sign:
Special CharacterDescription
\'single quote
\"double quote
\&ampersand
\nnew line
\ttab
\\backslash
\rcarriage return
\bbackspace
\fform feed
\vvertical tab
\0null character
Note that the \v and \0 escapes are not allowed in JSON strings.
Example
<!DOCTYPE html>
<html lang="en">
<head>
  <title>JavaScript Special Character</title>
</head>
<body>
    <script type="text/javascript">
        document.write("This example represent \"double quote\" special character.");
    </script>
</body>
</html>

Example Result