Created
August 1, 2014 02:01
-
-
Save macikokoro/ddfe8342bcc60c9d1eda to your computer and use it in GitHub Desktop.
Arrays and map()
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 numbers = [12, 4, 3, 9, 8, 6, 10, 1]; | |
var results = numbers.map(function(arrayCell) {return arrayCell * 2;}); | |
console.log(results); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment