re: Understanding reduce in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: That's why it's important use well named variables, imagine that your first approach with reduce was this way: arr.reduce((accumulator, currentValu...
 

I'm pretty sure I would still have found a way to be confused by it, hahaha

But I do agree that clear naming goes a long way to help understand code.

code of conduct - report abuse