📜  javascript代码示例的提示和技巧

📅  最后修改于: 2022-03-11 15:03:22.940000             🧑  作者: Mango

代码示例1
var numbers = [3, 5, 7, 2];
var sum = numbers.reduce((x, y) => x + y);
console.log(sum); // returns 17