webmanz Posted May 5, 2018 Report 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
administrator Posted May 6, 2018 Report Posted May 6, 2018 Hi, i is just a variable to hold information. In this case, it is holding the count. Stef Quote
webmanz Posted May 7, 2018 Author Report 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
webmanz Posted May 17, 2018 Author Report 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
administrator Posted February 25, 2020 Report 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
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.