Web/13-前端面试/02-面试题积累/函数.md
2020-04-19 18:24:43 +08:00

17 lines
161 B
Markdown

```
var arr = [1, 2, 3];
fun(arr);
console.log(arr);
function fun(a) {
a = [];
}
```
上方代码的打印结果是:[1,2,3]