Setting arr = [] creates a new array and doesn't affect other references. ... On the other hand, arr.length = 0 modifies the array. All references are affected.
確定! 回上一頁