Frontend
Interviews
.dev
Problems
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?
0
undefined
TypeError
NaN
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer