arguments
2022年5月1日小于 1 分钟
arguments
Question
What does the code snippet to the right output by console.log
?
Snippet
function log(a,b,c,d) {
console.log(a,b,c,d)
arguments[0] = 'bfe'
arguments[3] = 'dev'
console.log(a,b,c,d)
}
log(1,2,3)