题解 | #求二次方#
求二次方
http://www.nowcoder.com/practice/b7a8647e33d84f5c88acdd7c81a85fdf
function square(arr) {
var newArr=[]
for(let i=0;i<arr.length;i++){
newArr.push(arr[i]*arr[i])
}
return newArr
}
百度成长空间 585人发布