say I have an array with the following ten values: 329,374,353,336,137,340,374,374,356,329 I want to create a new array which uses those values and creates a sum according to their position, so that the new array (based on those values) would look like so:
329, 329+374, 329+374+353, 329+374+353+336, ... using javascript alone (no jquery) how can I achieve that?