JavaScript 数组方法
map、filter、reduce 等数组高阶方法
Question 1 of 8
Question 1 of 8javascript
以下代码的输出是什么? const arr = [1, 2, 3] console.log(arr.map(x => x * 2))
javascript
const arr = [1, 2, 3]
console.log(arr.map(x => x * 2))map、filter、reduce 等数组高阶方法
const arr = [1, 2, 3]
console.log(arr.map(x => x * 2))