题解 | #数组求和#
数组求和
https://www.nowcoder.com/practice/cc3ce199461c4c4cb8f63db61d7eba30
function sum(arr) { let res = 0 for(let i in arr){ res += arr[i] } return res }
数组求和
https://www.nowcoder.com/practice/cc3ce199461c4c4cb8f63db61d7eba30
function sum(arr) { let res = 0 for(let i in arr){ res += arr[i] } return res }
相关推荐