Skip to content

Commit fe75a44

Browse files
committed
done
1 parent 6625b69 commit fe75a44

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎assignments/array-methods.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,13 @@ runners.forEach((element) => companyDonations.push(`${element.company_name} gave
9292
}
9393
console.log(companyDonations);
9494

95-
// Problem 2 Finding out who the biggest people are by shirt size
95+
// Problem 2 Finding out who the biggest people are by shirt size, getting their info
9696
let giantPeople = runners.filter((tripleXL) =>{
9797
return tripleXL.shirt_size === "3XL"});
9898
console.log(giantPeople);
9999

100-
// Problem 3
100+
// Problem 3 First and Last with donation amount and generic thank you
101+
let judgeyComment = [];
102+
let judgement = runners.map((element) => judgeyComment.push(`${element.first_name} ${element.last_name} gave ${element.donation} , thanks bud`));
103+
judgeyComment.push(judgement);
104+
console.log(judgeyComment);

0 commit comments

Comments
 (0)