- Given an array of numbers, filter out the numbers that are not even, and are less than 100.
const numbers = [1, 60, 112, 123, 100, 99, 73, ];
// ... your code here
- From the given array of people, get the people who are allowed to consume alcoholic beverages (based on the US law). Bonus: Get just their names, we don't need their age.
const people = [
{ name: "Candice", age: 25 },
{ name: "Tammy", age: 30 },
{ name: "Allen", age: 49 },
{ name: "Nettie", age: 21 },
{ name: "Stuart", age: 17 },
{ name: "Bill", age: 19 }
];
// ... your code here
- Given the array of students, filter out just the ones who passed with the score 50 and more.
const students = [
{
name: "Peter",
score: 50
},
{
name: "Sarah",
score: 40
},
{
name: "Andy",
score: 33
},
{
name: "Grace",
score: 70
}
]