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