//special character
let str1 = "Hello\r\nWorld"; // two lines using a "newline symbol"
str1 += "\r\n We\'re \t\t helpful";
str1 += "\r\n \u00A9 (utf-16)";
str1 += "\r\n \u{20331} (utf-32)";
str1 += "\r\n \u{1F60D}";
document.getElementById("result").innerText = str1;
<h1>String</h1> <h2>Backtick quotes</h2> <ul> <li>special character</li> </ul> <blockquote> <code>let str1 = "Hello\r\nWorld"; // two lines using a "newline symbol"</code> <br /> result:<br /> <span id="result"></span> </blockquote>