Web/19-面试题积累/函数.md
qianguyihao 7fd06bf252 modify
2018-04-08 22:41:47 +08:00

161 B

    var arr = [1, 2, 3];

    fun(arr);
    console.log(arr);

    function fun(a) {
        a = [];

    }

上方代码的打印结果是:[1,2,3]