Created
September 27, 2015 23:24
-
-
Save matiasinsaurralde/994ec766694c0ca4d461 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 elementos = [ 'soy un td', 'soy otro td', 'etc' ]; | |
var elementosAsociativo = { 'soy un td': 'contenido del td', | |
'asdasdasd': 'asdasdad', | |
'asdddqqq': 'asdasd' }; | |
for( i in elementos ) { | |
var elemento = elementos[ i ]; | |
console.log( elemento ); | |
}; | |
/* | |
for( i in elementosAsociativo ) { | |
var valor = elementosAsociativo[ i ]; | |
console.log( valor ); | |
}; | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment