List of questions
Related questions
Question 138 - Certified JavaScript Developer I discussion
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
Your answer:
0 comments
Sorted by
Leave a comment first