In today's JavaScript video we look at Practice The reduce Method with JavaScript, Codecademy's Use The reduce Method in Reducing Array. This is from Codecademy's Iterator section of their JavaScript course. The lesson is, "The reduce() Method". In it we learn that JavaScript's .reduce() method will return a single value after it iterates through the elements of an array, in the end, reducing the array. The .reduce() method takes a callback function that has 2 parameters, accumulator and currentValue. The first item in our array will be the accumulator and the second element is the currentValue. As our iterator iterates through our array, the return value becomes the accumulator. We learn that .reduce can also take an optional second parameter that allows us to set an initial value for our accumulator. Understanding the .reduce() method and practicing the .reduce() method will help make you a better programmer. Being able to utilize arrays using the .reduce() method and understanding what .reduce() does is key in mastering the .reduce method. Make sure to Practice The reduce Method with JavaScript, Codecademy's Use The reduce Method in Reducing Array