4 lines
85 B
JavaScript
4 lines
85 B
JavaScript
arr = [1, 3, 6, 3, -5];
|
|
console.log(arr);
|
|
arr.length = 0;
|
|
console.log(arr);
|