Junior — Senior
What will console.log output when using the reduce method
livecode
Task condition
Determine what output will appear in the console when running the following code:
[1, 2, 3].reduce((a, b) => { console.log(a, b); });
livecode
Task condition
Determine what output will appear in the console when running the following code:
[1, 2, 3].reduce((a, b) => { console.log(a, b); });