Since arrays are 0 indexed, woulding an array with 2 elements have an length of 1?

Question

Since arrays are 0 indexed, woulding an array with 2 elements have an length of 1?

Answer

No, while the last index in the array is 1, there are two elements in the array. Thus the length of the array is 2.