Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/articles/javascript-tutorials/)
-   -   JavaScript For Beginners (http://www.go4expert.com/articles/javascript-for-beginners-t15423/)

Xintruder 28Dec2008 11:30

Re: JavaScript For Beginners
 
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 28Dec2008 15:21

Re: JavaScript For Beginners
 
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 6Jan2009 12:26

Re: JavaScript For Beginners
 
Nomination for article of the month for December 2008 Started.

oyeLucky 12Jan2009 21:29

Re: JavaScript For Beginners
 
Nice Article Bro ! Thank you.

sarah_9 5Feb2009 12:53

Re: JavaScript For Beginners
 
Hello,

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.


Regards,
sarah_9

Website Development Company India
infoseeksoftwaresystems


All times are GMT +5.5. The time now is 20:07.