If you're having trouble with this challenge be sure to check out this walkthrough for 1.7 to make sure you understand how
map() works. If you've understood the concepts of anonymous functions and the
.map() function from the videos then this one should be pretty straightforward.
We start out with the
modifiedNames array that we created in the previous challenge.
var modifiedNames = [ "Thomas Meeks",
"Dan McGaw" ];
Then we want to
map a new function to it.
As we saw in the video and the previous challenge we can pass in an array so that the
map() function will successfully loop through the array.
Then we want to provide an
alert() message for each passenger in the
modifiedNames array. And that should work okay for the challenge:
alert("Yo, " + name + "!");
Hopefully the minor alterations make things a little more easy to understand. As always, feel free to chime in if there is anything we can do to further clarify.