ForumsProgramming ForumSimple easy question

3 3282
alsage
offline
alsage
132 posts
Nomad

So I have this piece of code here

for (var i:int=0; i<buttonsArray.length; i++)


and I am just curiouse if the "i" is just a variable and can it be changed to something like "a"

I am asking this question to get a better understanding of the code
  • 3 Replies
Lordakin22
offline
Lordakin22
3 posts
Nomad

What is "i"? I don't know...

Graham
offline
Graham
8,051 posts
Nomad

It can be any letter or word, but make sure that you change ALL of the i's to correspond with the new letter/word.

alsage
offline
alsage
132 posts
Nomad

ok thanks Graham I really appreciate it =D

Showing 1-3 of 3