Simply use the variable name along with the index you wish to clear. let numbers = [1,2,3,4];delete numbers[1]; console.log(numbers); // [1, ...
確定! 回上一頁