We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ecdfed commit 1f50dceCopy full SHA for 1f50dce
04 - Array Cardio Day 1/index-START.html
@@ -63,6 +63,11 @@
63
console.log(year);
64
65
// 5. Sort the inventors by years lived
66
+ const sortedyearslived = inventors.sort(yearslived);
67
+ function yearslived(a,b){
68
+ return ((b.passed-b.year)-(a.passed-a.year));
69
+ }
70
+ console.log(sortedyearslived);
71
72
// 6. create a list of Boulevards in Paris that contain 'de' anywhere in the name
73
// https://en.wikipedia.org/wiki/Category:Boulevards_in_Paris
0 commit comments