📜  生成空数组 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:03.495000             🧑  作者: Mango

代码示例4
// define Array
let list = [1, 2, 3, 4];
function empty() {
    //empty your array
    list = [];
}
empty();