const cats = ['Leopard', 'Serval', 'Jaguar', 'Tiger', 'Caracal', 'Lion']; const filtered = cats.filter((cat) => cat.startsWith('L')); console.log(filtered); // [ "Leopard", "Lion" ]