Question 3
Consider the following code.
const arr = [1, 2, 3];const result = arr.map(function(item, index) { return this[index] * item;}, [10, 20, 30]);console.log(result);What will be the output?
[1, 2, 3]
[10, 40, 90]
[10, 20, 30]
[NaN, NaN, NaN]