<p class='lg:w-1/2 w-full leading-relaxed text-gray-500 w-1/2 p-0.5' style='text-align: left; margin-right: 1in;'>
<p style='text-align: left;'> JavaScript provides powerful array methods like map, filter, and reduce for more advanced operations.</p>
<pre style='text-align: left;'>
let numbers = [1, 2, 3, 4, 5];
let squared = numbers.map(function(number) {
return number * number;
});
let evenNumbers = numbers.filter(function(number) {
return number % 2 === 0;
});
let sum = numbers.reduce(function(total, number) {
return total + number;
}, 0);