Question PRG-JS-0080
HardWhat does Array.prototype.reduce return for an empty array with no initial value?
- A.
An empty array
- B.
It throws a TypeError
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
JavaScript question
What does Array.prototype.reduce return for an empty array with no initial value?
An empty array
It throws a TypeError
Sign up free to see the answer and a step-by-step explanation.
undefined
0