I have created static array as following below
country["0"]=[USA];
sate[country[0][0]]=[["NewYork","NY"],["Ohio,"Oh"]]
for (var i = 0; i < sate[country[0][0]].length; i++) {
var key = state[country[0][0]] [i][0];
var value = state[country[0][0]] [i][i+1];
}
from above loop i am able to get the keys of state like NewYork and Ohio. Please help me how i will get the value of "NY" and "Oh"?
["Ohio,"Oh"]is missing a"after Ohio.sateand othersstate. Wouldn't it be easier to use an object?