title: JavaScript for Loop
body: <p>Write odd numbers from 1 to 100.. And I used this piece of code for this: </p>
  
  <pre><code>var i=1;
  for (i=1; i &lt; 51; i = i + 1){
  
   document.write(i -1 + i );
    document.write("&lt;br /&gt;");
    }
  </code></pre>
  
  <p>Now, can somebody please tell me if this code is right or I can make it better. </p>