🌻 The reduce() method executes a reducer function on each element of the array.
🌻 It returns a single value as a result and doesn't execute the function for an empty array element.
🌻accumulator
It's a value of the previous function call, or the InitialValue for the first call.
If there is no any InitialValue provided then it's accumulate the first item of the array and item is initialized to the second value in the array.