题解 | #创建数组#
创建数组
https://www.nowcoder.com/practice/04a6204cd4cf42dd8983c000110ada7e
const _createArray = (number) => { // 补全代码 function a(x,y,z){ if(x!=0){ z.push(y) return a(x-1,y,z); } else{ return z } } return a(number,number,[]) }
一眼地龟
创建数组
https://www.nowcoder.com/practice/04a6204cd4cf42dd8983c000110ada7e
const _createArray = (number) => { // 补全代码 function a(x,y,z){ if(x!=0){ z.push(y) return a(x-1,y,z); } else{ return z } } return a(number,number,[]) }
一眼地龟
相关推荐