JavaScript Professional — Medium
Key points
- `reduceRight()` iterates right-to-left, `reduce()` left-to-right
- Direction affects result for non-commutative operations
- Both methods accumulate a value during iteration
Ready to go further?
Related questions
