Skip to content

Commit c1adeee

Browse files
committed
04 - Array Cardio Day 1: Answer wesbos#6
1 parent 7a059b4 commit c1adeee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171

7272
// 6. create a list of Boulevards in Paris that contain 'de' anywhere in the name
7373
// https://en.wikipedia.org/wiki/Category:Boulevards_in_Paris
74-
74+
// const container = document.querySelector('.mw-category')
75+
// const list = [...container.querySelectorAll('a')]
76+
// const de = list.map(el => el.textContent).filter(text => text.includes('de'))
7577

7678
// 7. sort Exercise
7779
// Sort the people alphabetically by last name

0 commit comments

Comments
 (0)