I have array of objects declared as below, I want to push data into this using for loop, Lets assume I have two main products and that product has qty and code so I cant provide data I just need to know how to push in below array.

```
var hashtable = [];
var hashtable = [{
    recurrence_code:'',
    products:[{
                    code:'',
                    qty:''
                }],
    start_date:'',
    payment_type:'',
    payment_method:''
}];

for (var i = 0; i < 2 ; i++) {
    for (var j=0; j < 2; j++) {
        hashtable[i].recurrence_code = i;//dumy data
        hashtable[i].products[j].code =j;//dumy data
        hashtable[i].products[j].qty = j;//dumy data
        hashtable[i].start_date = i;//dumy data
        hashtable[i].payment_type = 'pay_as_you_go';
        hashtable[i].payment_method = 'sms2_pay_and_email';             
    }
}
console.log(hashtable);

```

but the above loop structure is not working for me, how can i push data? any help?
After pushing above data into array it should look like this
**output**

```
hashtable[0][recurrence_code] = 0;
 hashtable[0][products][0][code] = 0;
 hashtable[0][products][0][qty] = 0;
 hashtable[0][products][1][code] = 1;
 hashtable[0][products][1][qty] = 1;
 hashtable[0][start_date] = 0;
 hashtable[0][payment_type] = 'pay_as_you_go';
 hashtable[0][payment_method] = 'sms2_pay_and_email';

hashtable[1][recurrence_code] = 0;
hashtable[1][products][0][code] = 0;
hashtable[1][products][0][qty] = 0;
hashtable[1][products][1][code] = 1;
hashtable[1][products][1][qty] = 1;
hashtable[1][start_date] = 0;
hashtable[1][payment_type] = 'pay_as_you_go';
hashtable[1][payment_method] = 'sms2_pay_and_email';

```

This the fiddle to try [fiddle](http://jsfiddle.net/y26nco8y/)