题解 | #求二次方#

求二次方

http://www.nowcoder.com/practice/b7a8647e33d84f5c88acdd7c81a85fdf

function square(arr) {
var temp = [];
arr.forEach(function(elem){
return temp.push(Math.pow(elem,2))
})
return temp
}

全部评论

相关推荐

Dream_coding:你是不是只投大厂了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务