I have an array of elements, i need to add the every first, seven, thirteen and nineteen (70, 74, 50, 70) values and sum of them using java script.
var rowSpanHeight = ['70', '70', '70', '70', '70', '70','74', '74', '74', '74', '74', '74','50', '50', '50', '50', '50', '50','70', '70', '70', '70', '70', '70'];
Anyone can help? Thanks!