webmanz Posted May 5, 2018 Report Share Posted May 5, 2018 What does the " i " stand for in i - - ? Special meaning? for ( var i = 10 ; i > 10 ; i - - ) and is the above same as saying: var i=10; i > 10; i = i - 1; Quote Link to comment Share on other sites More sharing options...
administrator Posted May 6, 2018 Report Share Posted May 6, 2018 Hi, i is just a variable to hold information. In this case, it is holding the count. Stef Quote Link to comment Share on other sites More sharing options...
webmanz Posted May 7, 2018 Author Report Share Posted May 7, 2018 On 5/6/2018 at 1:10 PM, administrator said: Hi, i is just a variable to hold information. In this case, it is holding the count. Stef Could we have used any letter besides "i" and still it work? example: for ( var t = 10 ; t > 10 ; t - - ) Quote Link to comment Share on other sites More sharing options...
administrator Posted May 16, 2018 Report Share Posted May 16, 2018 Sure. Quote Link to comment Share on other sites More sharing options...
webmanz Posted May 17, 2018 Author Report Share Posted May 17, 2018 (edited) 5 hours ago, administrator said: Sure. for ( var i = 10 ; i > = 10 ; i - - ) Why doesn't the i - - end in a semi-colon then parenthesis ? i.e. like this: i - - ; ) Edited May 17, 2018 by webmanz Quote Link to comment Share on other sites More sharing options...
administrator Posted February 25, 2020 Report Share Posted February 25, 2020 On 5/16/2018 at 10:46 PM, webmanz said: end in a semi-colon then parenthesis ? Wow ... old post. Last argument does not need a semi-colon. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.