We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d65901 commit caee4a8Copy full SHA for caee4a8
04 - Array Cardio Day 1/index-START.html
@@ -87,7 +87,7 @@
87
];
88
89
// Array.prototype.filter()
90
- // 1. Filter the list of inventors for those who were born in the 1500's
+ // 1. Filter the list of inventors for those who were born in the 1500's
91
const inventorsOf1500s = inventors.filter((inventor) => {
92
return inventor.year > 1499 && inventor.year < 1600
93
? true
@@ -107,6 +107,10 @@
107
108
// Array.prototype.map()
109
// 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);
114
115
// Array.prototype.sort()
116
// 3. Sort the inventors by birthdate, oldest to youngest
0 commit comments