title: newline doesn't work in javascript
body: <p>When I use the new line character in java-script it is not working. I post my code below.</p>
  
  <pre><code>var i=1;
  while(i&lt;=5)
  {
      document.write(i+"\n");     
      i++;
  }
  </code></pre>
  
  <p>The outcome looks like this.
  1 2 3 4 5</p>