In this lesson, we'll learn how to use the Array.reduce helper method that was introduced to JavaScript in ES6.
The reduce method is great if you want to get one single value from multiple values in an array. Whether it’s values in nested objects or sub-arrays, you can build all the logic you want around the accumulator and current value.