编辑代码

//箭头函数其中一个重要的用处 就是简化回调函数
let arr = [1,2,3];
let arr2 = arr.map(function(x){
    return x * x;
});
console.log('arr,arr');