length ", implies that the last value of i that is actually processed is A.length-1, which is the index of the final item in the array. It's important to use "<" ...
確定! 回上一頁