var num = [0,1,2,3,4,5];
var reduce = num.reduce(function(a, b) {
 
  return a + b;
 
})
 
console.log(reduce);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://codepen.io/nullobject/pen/cngzI.js