$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · hard · #49
What is the output?
const x = [10, 20, 30]; console.log(x.reduce((a, b) => a + b, 0));
60
102030
30
0
reduce sums all elements starting from 0, giving 60.
Play Problem Solving ▸
◂ #48
all Problem Solving — predict the output questions
#50 ▸