JavaScript · Array Methods · Interactive
Array Methods,
explained for humans
All 41 Array methods illustrated with real scenarios — shopping carts, playlists, delivery queues. No dry theory.
// Real problems, real methods const cart = [ { name: 'Shoes', price: 2499 }, { name: 'Hat', price: 399 }, ]; // Filter under ₹500 cart.filter(i => i.price < 500); // [{Hat}] // Apply 10% discount cart.map(i => ({...i, price: i.price * 0.9})); // Calculate total cart.reduce((s, i) => s + i.price, 0); // 2898
What you'll learn
5 real-world scenarios
Quick reference
All methods at a glance
Mutates
New array
Iterative
Search