30 Days Of JavaScript

Day 11: Higher Order Functions Part 2

Lesson 5: reduceRight

After the length of the reduce() lesson this is going to seem comically short.

reduceRight() does the same thing as reduce() but it starts at the end of the array and works backwards.

It's the same as calling reverse() on an array first (which, you guessed it, reverses an array) and then .reduce().

Most JavaScript developers don't know this exists, I'm only including it for completeness and so you have another tidbit of knowledge to make you look good!

Outline

Go Pro?

Upgrade to Pro for quizzes, tracked progress and a completion certificate for just $25 🚀

Want more developer tips, tricks and tools?
Then follow me:
FREE Coding Career Quick Start Guide 🚀
Discover the best way to learn to code, how to land a job and valuable resources to help your journey in this free 15 page value packed guide.
Looking to email me? You can get me on my first name at allthecode.co