Discuss / JavaScript / 练习:利用reduce()求积:

练习:利用reduce()求积:

Topic source

凌翊CJV

#1 Created at ... [Delete] [Delete and Lock User]

function product(arr) { return arr.reduce(function (x, y) { return x * y; }); }


  • 1

Reply