​js reduce数组循环相加x+y


    var num = [1,2,3]
            var dd = num.reduce((x, y) => {
                return x + y
            })