JavaScript Reduce Method Stack Overflow

var arr = [1,2,3,4,5,6];
arr.reduce(function(p,n){
 return p+n;
},0);
// Output 21
Ashamed Ape