Medium

Understanding JavaScript Array reduce() with Conditional Logic and Index Parameter

What will the following code output, and why?

Choose an option below