What value is printed when executing the following code?
const arr = [1, 2, 3];
const multiplied = arr.map((x, i, a) => x * a.length);
console.log(multiplied[0]);
What value is printed when executing the following code?
const arr = [1, 2, 3];
const multiplied = arr.map((x, i, a) => x * a.length);
console.log(multiplied[0]);