Created
January 19, 2016 00:03
-
-
Save duggiemitchell/3d9a07994ddcaaf5e91f to your computer and use it in GitHub Desktop.
Using Map With Arrays II
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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