Salesforce Exam Questions

Refer to the code below:

Refer to the code below:

What is the output if this function when called with an empty array?

A. Returns 0

B. Returns NaN

C. Returns 10

D. Throws an error

Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Reduce_of_empty_array_with_no_initial_value