题解 | #使用 arguments#

使用 arguments

https://www.nowcoder.com/practice/df84fa320cbe49d3b4a17516974b1136

//可以利用argument,配合reduce方法来解决
function useArguments(...argument) {
    return argument.reduce((total,i)=>total+=i)
}
全部评论

相关推荐

马里奥天生励志:估计是寄了,又是一个测试发现网的
点赞 评论 收藏
分享
08-19 17:40
Java
吴offer选手:666 打老板了吗
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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