Skip to content

Commit 3d819ff

Browse files
sofialevinsofialevin
authored andcommitted
Completed challenges 1-4 in array-methods.js file.
1 parent 90cc0f0 commit 3d819ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assignments/array-methods.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ const runners = [{"id":1,"first_name":"Charmain","last_name":"Seiler","email":"c
5656
// ==== Challenge 1: Use .forEach() ====
5757
// The event director needs both the first and last names of each runner for their running bibs. Combine both the first and last names into a new array called fullName.
5858
let fullName = [];
59+
60+
runners.forEach(function('first_name', 'last_name') {
61+
console.log('first_name', 'last_name')
62+
})
63+
5964
console.log(fullName);
6065

6166
// ==== Challenge 2: Use .map() ====

0 commit comments

Comments
 (0)