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