Here is my JavaScript:
var states = new Array();
var st = {'FL':{'profit':150}};
states.push(st);
alert(states[0]['FL']['profit']);
The problem with this is that I want to access variable like this alert(states['FL']['profit']);
, meaning without [0] index... But that [0] index is added by default by "push" method. And I really need to append array into array this way because I am assigning through the loop. So is there way to append to array without assigning that index [0] ?