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