Created
January 26, 2016 01:46
-
-
Save cdmz/a5739e47628e30e3e356 to your computer and use it in GitHub Desktop.
multiplicar valores array javascript
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
var squares = [1,2,3,4].map(function (val) { | |
return val * val; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what if i want the squared number of each one? 1, 4 , 9, 16
thanks