Refer to the code below:
Const myFunction = arr => {
Return arr.reduce((result, current) =>{
Return result = current;
}, 10};
}
What is the output of this function when called with an empty array ?
A. Returns 0
B. Throws an error
C. Returns 10
D. Returns NaN
Returns 10