Rene Rad wrote:I think I get it.
Does x.length ALWAYS start at 1? If so I guess I should never use '(or)equals to' but rather always less than.
Is this correct?
the issue is that array indexes start at 0. if the array has length 10, then we have elements numbered 0,1,2,3,4,5,6,7,8,9.
Count em. There's 10 numbers there. An array with length = 1 has only one index, 0