Jump to content

Recommended Posts

Posted

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;

Posted
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 -  -   )

  • 2 weeks later...
Posted (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 by webmanz
  • 1 year later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...