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