Hi! I just don’t get what is an accumulator and how do I get it. For example, here is a screenshot from exercise:
Can someone explain me a bit more, what exactly is
accumulator? I think it’s just language barrier messing up here with me so I don’t get it right away.
After looking a bit more in a example I see, that, if we sum first iteration’s
accumulator + currentValue we get second iteration’s
accumulator. The same with next iteration’s
accumulator. But it still doesn’t make any sense for me. Why value 3 wasn’t used in example as value of
currentValue? And why it didn’t start from the