Finding the total of array between two indexes.
Hi, if I have an array like this:
scores = new Array(5,2,4,6,8,9,10);
How would I get the total value of the items from index 1 (2 in this case) and index 4 (8 in this case). So scores would return the value of 20.
Thanks in advance.