FrontendInterviews.dev

651. reduce on Empty Array Without Initial Value

Easy•

Predict the output.

console.log([].reduce((a, b) => a + b))

What is printed in the console?

Select an option and submit your answer.
Next Problem