Skip to content

Commit caee4a8

Browse files
committed
finish wesbos#2
1 parent 6d65901 commit caee4a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

04 - Array Cardio Day 1/index-START.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
];
8888

8989
// Array.prototype.filter()
90-
// 1. Filter the list of inventors for those who were born in the 1500's
90+
// 1. Filter the list of inventors for those who were born in the 1500's
9191
const inventorsOf1500s = inventors.filter((inventor) => {
9292
return inventor.year > 1499 && inventor.year < 1600
9393
? true
@@ -107,6 +107,10 @@
107107

108108
// Array.prototype.map()
109109
// 2. Give us an array of the inventors first and last names
110+
const fullNames = inventors.map((inventor) => {
111+
return `${inventor.first} ${inventor.last}`;
112+
});
113+
// console.log(fullNames);
110114

111115
// Array.prototype.sort()
112116
// 3. Sort the inventors by birthdate, oldest to youngest

0 commit comments

Comments
 (0)