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.
1 parent e7d5c74 commit 41473aaCopy full SHA for 41473aa
04 - Array Cardio Day 1/index-START.html
@@ -47,6 +47,8 @@
47
48
// Array.prototype.sort()
49
// 3. Sort the inventors by birthdate, oldest to youngest
50
+ inventors.sort( (a, b) => a.year - b.year ); //oldest listed first
51
+ console.table(inventors);
52
53
// Array.prototype.reduce()
54
// 4. How many years did all the inventors live?
0 commit comments