Array.prototype.sum() Returns the sum of the elements of an array. let arr = [4, 3, 1, 5, 11]; console.log(arr.sum()); // 24