Created
February 12, 2016 18:21
-
-
Save Jorger/4ccafe7beadab3e66b69 to your computer and use it in GitHub Desktop.
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 a = [1,2,3,4,5]; | |
var expresion = true; | |
var resultado = expresion ? (function() | |
{ | |
var valores = []; | |
for(var i = 0; i < a.length; i++) | |
{ | |
valores.push(a[i]); | |
} | |
return valores; | |
})() : []; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment