title: How to use \n in a javascript string
body: <p>Example:</p>
  <pre><code>var i = 'Hello \n World'
  console.log(i)
  </code></pre>
  <p>Would return:</p>
  <pre><code>Hello
  World
  </code></pre>
  <p>and <strong>I want it to return</strong></p>
  <pre><code>Hello \n World
  </code></pre>
  <p>not rendering the new line, as I intend to store this in a database.</p>
  <hr />
  <p><strong>FOR THOSE WHO WANT TO STORE <code>\n</code> in Database</strong></p>
  <p>You don't need to escape, as your Document Database will do <code>JSON.stringify</code>, I use ArangoDB and it works perfectly fine, thanks to <a href="https://stackoverflow.com/users/772035/paul">@PaulPro</a></p>