title: NewLine escape character not working
body: <p>We know that \n is used to feed a new line in JavaScript.<br>
  How should I use it for an output (in a for-loop):  </p>
  
  <pre><code>str=prompt("Enter any string!");
      for(i=0;i&lt;str.length;i++)
      {
          document.write('\n'+str.charCodeAt(i));
      }   
  </code></pre>
  
  <p>or</p>
  
  <pre><code>str=prompt("Enter any string!");
      for(i=0;i&lt;str.length;i++)
      {
          document.write('\n'+str.charCodeAt(i));
      }
  </code></pre>
  
  <p>Neither seems to work.</p>