To clear an array in JavaScript, you can assign a new empty array "[]" to it or set the length of the array to zero (array.length = 0).
確定! 回上一頁