Xintruder's Avatar, Join Date: Dec 2008
Go4Expert Member
Thanks for yor quick response,
Ok, I see it is necessary. But does ++i means increment in ones?

When we did for loops in vb.net, I remember doing something like:
var i as integer
for i = 0 to 10 step one

step one meant to increment by ones. I asked my instructor he said if I had step 2, it will increment in two (ie possibly half of the total number of steps if I had step 2). I have no idea why would someone increment in two or more steps. Why not makes the steps lesser instead. So step one in vb.net = i++ j/script?
neo_vi's Avatar, Join Date: Feb 2008
Invasive contributor
i++ increments the variable only once. if u need to step up by 2, use i=i+2 in the place of i++. or u can also use i+=2.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Nomination for article of the month for December 2008 Started.
oyeLucky's Avatar, Join Date: Dec 2008
Go4Expert Member
Nice Article Bro ! Thank you.
sarah_9's Avatar, Join Date: Jan 2009
Newbie Member

JavaScript is very strong language, if any one is really interested in website development, then he has to learn JavaScript properly, though it is not complete language, but very useful in web development.


Website Development Company India