var num = [0,1,2,3,4,5]; var reduce = num.reduce(function(a, b) { return a + b; }) console.log(reduce);
This Pen is owned by Marina Yamaoto on CodePen.
See more by @marina294 on CodePen
This Pen doesn't use any external CSS resources.