how to do addition of array elements in javascript without loop code example
Example: sum array without loop javascript
var myArray = [1,2,3,4,5];
var total = eval(myArray.join("+"));
var myArray = [1,2,3,4,5];
var total = eval(myArray.join("+"));