选择篇(006)-下面代码的输出是什么?
文章目录
let newList = [1, 2, 3].push(4);
console.log(newList.push(5));A: [1,2,3,4,5]
B: [1,2,3,5]
C: [1,2,3,4]
D: Errorlet newList = [1, 2, 3].push(4);
console.log(newList.push(5));A: [1,2,3,4,5]
B: [1,2,3,5]
C: [1,2,3,4]
D: Error
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论