0

I am quite new to javascript, but in other languages I typically use the values of variables which makes sense to me

For example VBA:

lastRowNum = Sheet1.Cells(Rows.Count, 1).End(xlUp).Row

for rowNum = 1 to lastRowNum
        --do stuff
    next rowNum

So I am just wondering why "i" became what everybody uses. If I am looping over the elements in an array, then I would think that "n" makes much more sense.

ThomasRones
  • 493
  • 5
  • 23

1 Answers1

1

i isn't only used in JavaScript, yet in most languages as well.

i is for index.

That's all

Roysh
  • 1,535
  • 3
  • 16
  • 25