Created
August 1, 2014 03:35
-
-
Save macikokoro/f0b51e73bb0f19b2a68d to your computer and use it in GitHub Desktop.
Another example of a function using the map method.
This file contains hidden or 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
var modifiedNames = [ "Thomas Meeks", | |
"Gregg Pollack", | |
"Christine Wong", | |
"Dan McGaw" ]; | |
modifiedNames.map(function(cell){ alert("Yo, " + cell + "!");}); | |
//alerts Yo, name! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment