We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5ad5fe commit 7218c63Copy full SHA for 7218c63
04 - Array Cardio Day 1/index-START.html
@@ -50,6 +50,8 @@
50
51
// Array.prototype.sort()
52
// 3. Sort the inventors by birthdate, oldest to youngest
53
+ const sorted = inventors.sort((a, b) => a.year - b.year)
54
+ console.table(sorted);
55
56
// Array.prototype.reduce()
57
// 4. How many years did all the inventors live all together?
0 commit comments