Array’s Length is Not Its Total Number of Items
The length of an array is often misunderstood as the tally of the number of items we’ve added to the array, when it’s not! It’s got something to do with the indices, actually.
The length of an array is often misunderstood as the tally of the number of items we’ve added to the array, when it’s not! It’s got something to do with the indices, actually.