$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #81
What is the output?
console.log([1, 2, 3].reduce((a, b) => a + b));
6
0
123
NaN
With no seed, reduce starts from the first element and adds the rest.
Play Problem Solving ▸
◂ #80
all Problem Solving — predict the output questions
#82 ▸