Codeconst arr = [1, 2, 3, 4, 5];const result = arr.reduce((acc, num) => acc * num, 1);console.log(result);