Skip to content

Commit 60aa34c

Browse files
committed
Update
1 parent 4d0fb29 commit 60aa34c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

assignments/array-methods.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@ const runners = [{"id":1,"first_name":"Charmain","last_name":"Seiler","email":"c
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 = [];
5959

60-
runners.forEach(x => {
61-
62-
fullName.push(x.first_name.concat(" " + x.last_name));
63-
64-
})
60+
runners.forEach(x => fullName.push(x.first_name.concat(" " + x.last_name)));
6561
console.log(fullName);
6662

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

0 commit comments

Comments
 (0)