What operations are being performed in sequence on the array?
const numbers = [1, -2, 3, -4, 5];
const result = numbers.filter(num => num > 0)
.map(num => num * 2)
.reduce((sum, num) => sum + num, 0);
This code demonstrates method chaining with array operations: 1) filter(num => num > 0) removes negative numbers, keeping [1, 3, 5], 2) map(num => num * 2) doubles each remaining number to [2, 6, 10], 3) reduce((sum, num) => sum + num, 0) sums all numbers to get 18, 4) Operations are performed sequentially left to right, 5) Each method creates an intermediate array except reduce, 6) Original array remains unchanged due to method immutability, 7) This is a common functional programming pattern, 8) Efficient for complex data transformations in a single chain.