function func1(a, b, c) {

console.log(arguments);
console.log(arguments[0]);
// expected output: 1

console.log(arguments[1]);
// expected output: 2

console.log(arguments[2]);
// expected output: 3
}

func1(1, 2, 3);

posted on 2021-04-04 22:00  假装新手  阅读(168)  评论(0编辑  收藏  举报