题解 | #求二次方#

求二次方

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
 }
全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务