We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2534c50 commit 0c6a3aaCopy full SHA for 0c6a3aa
04 - Array Cardio Day 1/index-START.html
@@ -68,10 +68,17 @@
68
// 5. Sort the inventors by years lived
69
const yearsLived = inventors.sort((a,b) => (a.passed-a.year) > (b.passed-b.year) ? 1 : -1);
70
console.table(yearsLived);
71
+
72
73
// 6. create a list of Boulevards in Paris that contain 'de' anywhere in the name
74
// https://en.wikipedia.org/wiki/Category:Boulevards_in_Paris
75
76
+ const category = document.querySelector(".mw-category-columns");
77
+ const links = Array.from(category.querySelectorAll("a"));
78
+ const de = links.map(anchor => anchor.textContent);
79
+ const result = de.map(arrayItem => arrayItem.includes("de"));
80
+ console.log(result);
81
82
83
// 7. sort Exercise
84
// Sort the people alphabetically by last name
0 commit comments