Skip to content

Instantly share code, notes, and snippets.

@duggiemitchell
Created January 19, 2016 00:03
Show Gist options
  • Save duggiemitchell/3d9a07994ddcaaf5e91f to your computer and use it in GitHub Desktop.
Save duggiemitchell/3d9a07994ddcaaf5e91f to your computer and use it in GitHub Desktop.
Using Map With Arrays II
The passengers have arrived at Maple Mountain! Take the modifiedNames array that you produced in the last challenge, and map a new anonymous function on it.
The function should alert the following message to the screen for each passenger in turn:
var modifiedNames = [ "Thomas Meeks",
"Gregg Pollack",
"Christine Wong",
"Dan McGaw" ];
modifiedNames.map(function(modifiedNames) {
alert("Yo, " +modifiedNames+ "!");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment