Cita:
La idea es que me imprima en el orden adecuado, ejemplo:var x;
var y;
var leagues = {L1:"10", L2:"1"};
var games = {G1:"12703", G2: "303"};
for (x in leagues){
for (y in games){
alert('league position['+[x]+'] = '+leagues[x]);
alert('game position['+[y]+'] = '+games[y]);
}
}
var y;
var leagues = {L1:"10", L2:"1"};
var games = {G1:"12703", G2: "303"};
for (x in leagues){
for (y in games){
alert('league position['+[x]+'] = '+leagues[x]);
alert('game position['+[y]+'] = '+games[y]);
}
}
L1 = 10 y G1 = 12703
L2 = 1 y G2 = 303
Alguna ayudita por favor ?