title: How to insert a <CR> (Carriage Return) in a Javascript String?
body: <p>I need to insert a Carriage Return in a String. As far as I know the <code>\r</code> should do it but here is the problem:</p>
  
  <p>I wrote this in the browser console: <code>1\r2</code> then I get: <code>12</code> in return. Now I copy/paste it on Notepad++ <a href="https://imgur.com/a/pUW8p" rel="nofollow noreferrer">https://imgur.com/a/pUW8p</a></p>
  
  <p>There is a CR and a LF there. How I can add just a CR?</p>
  
  <p>Note that you can replace the LF(\n) in notepad, save the file and the LFs are gone.</p>