编辑代码

let arr = [1,2,3];
let arr2 = arr.map(function(x){
  return x * x; 
});
console.log(arr);
console.log(arr2)