当前位置:网站首页>Selection (045) - what is the output of the following code?

Selection (045) - what is the output of the following code?

2022-06-12 02:33:00 Qi Delong

const numbers = [1, 2, 3]
numbers[10] = 11
console.log(numbers)
  • A: [1, 2, 3, 7 x null, 11]
  • B: [1, 2, 3, 11]
  • C: [1, 2, 3, 7 x empty, 11]
  • D: SyntaxError

Refer to the answer

原网站

版权声明
本文为[Qi Delong]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203011131573766.html