Easy
Understanding JavaScript Array Chaining: Filter and Map Operations Explained
What will be logged to the console, and why?
1const array = [1, 2, 3, 4];2const filteredArray = array.filter((num) => num > 2).map((num) => num * 2);34console.log(filteredArray);