题解 | #创建数组#
创建数组
https://www.nowcoder.com/practice/04a6204cd4cf42dd8983c000110ada7e
const _createArray = (number) => { // 补全代码 const newArr = new Array(number) return newArr.fill(number) } _createArray(10)
创建数组
https://www.nowcoder.com/practice/04a6204cd4cf42dd8983c000110ada7e
const _createArray = (number) => { // 补全代码 const newArr = new Array(number) return newArr.fill(number) } _createArray(10)
相关推荐