Easy
What will be the output of the following code, and why?
1let values = [3, 7, 10];let multiplier = 2;2let output = values .map((val, idx) => val * (idx % 2 === 0 ? multiplier : multiplier + 1)) .filter(val => val % 3 === 0) .reduce((acc, val) => acc + val, 5);3console.log(output);