Skip to content

Commit 837410e

Browse files
committed
Answer wesbos#2
1 parent 2e35553 commit 837410e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545

4646
// Array.prototype.map()
4747
// 2. Give us an array of the inventors first and last names
48+
const firstLast = inventors.map(inventor => `${inventor.first} ${inventor.last}`)
49+
console.log(firstLast)
4850

4951
// Array.prototype.sort()
5052
// 3. Sort the inventors by birthdate, oldest to youngest

0 commit comments

Comments
 (0)