Easy
This question is a daily question and will count towards your daily streak.
What will be the output of the following code?
1let numbers = [1, 2, 3];2let result = numbers.map((num, index) => num * index).reduce((acc, val) => acc + val, 0);34result += numbers.filter(num => num % 2 === 0).length;56console.log(result);