What value is printed when executing the following code?
const values = ['1', '2', '3'];
const sum = values.map(Number).reduce((a, b) => a + b, 0);
console.log(sum);
What value is printed when executing the following code?
const values = ['1', '2', '3'];
const sum = values.map(Number).reduce((a, b) => a + b, 0);
console.log(sum);