Webcourse/19-基础/函数.md

17 lines
161 B
Markdown
Raw Normal View History

2018-03-23 17:05:32 +08:00
```
var arr = [1, 2, 3];
fun(arr);
console.log(arr);
function fun(a) {
a = [];
}
```
上方代码的打印结果是:[1,2,3]