What happens when reduce is called on an empty array without supplying an initial accumulator value?
Բացատրություն
With no elements and no explicit initial value, reduce has nothing from which to establish its accumulator, so it throws a TypeError. Supplying an initial value would make that value the result for the empty array instead.