Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e97e0b4 + 727b7f8 commit 191e41fCopy full SHA for 191e41f
04 - Array Cardio Day 1/index-START.html
@@ -36,12 +36,13 @@
36
37
// Array.prototype.filter()
38
// 1. Filter the list of inventors for those who were born in the 1500's
39
- const fifteen = inventors.filter(inventor => inventor.year >= 1500 && inventor.year < 1600);
40
-
41
- console.table(fifteen);
+ //const fifteen = inventors.filter(inventor => inventor.year >= 1500 && inventor.year < 1600);
+ //console.table(fifteen);
42
43
// Array.prototype.map()
44
// 2. Give us an array of the inventors' first and last names
+ const names = inventors.map(inventor => inventor.first + ' ' + inventor.last);
45
+ console.log(names);
46
47
// Array.prototype.sort()
48
// 3. Sort the inventors by birthdate, oldest to youngest
0 commit comments