let newArray = [1, 2, 3].map( num => num * num );
map 中的函数参数的返回值可以返回到 newArray 里存储起来,而 forEach 没有这种特性。