Conversation
ielvisd
left a comment
There was a problem hiding this comment.
Going to send you the solution to this challenge because you're very close to hitting MVP with some small changes.
| return contains.includes(items); | ||
| } | ||
|
|
||
| contains(item, function(list) { |
There was a problem hiding this comment.
Everything looks good except for this contains function. Use some console logs here to check your work along the way.
| // 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. | ||
| let fullName = []; | ||
|
|
||
| runners.forEach(function(firstName, lastName) { |
There was a problem hiding this comment.
You only need to pass one thing into the function because you are already doing something forEach item you pass
|
|
||
| console.log(fullName); | ||
|
|
||
| // ==== Challenge 2: Use .map() ==== |
There was a problem hiding this comment.
use .map (refer to the MDN) documentation for array methods for some examples. Same for .filter
| speak('Yo'); | ||
|
|
||
|
|
||
| // ==== Challenge 2: Create a counter function ==== |
There was a problem hiding this comment.
You're almost there for challenge 2, throw some console.logs in there to check your work as you work through your function.
No description provided.