i have:
var myVariable= {
var_one: ["satu", 'uno'],
var_two: ["dua", 'dos'],
var_three: ["tiga", 'tres'],
var_four: ["empat", 'cuatro'],
var_five: ["lima", 'cinco'],
var_six: ["enam", 'seis']
};
for (var component in myVariable) {
document.getElementById(component[0]).value = '';
}
the issue I am facing is that the component value is returning:
var_one ... var_six
whereas I am anticipating:
satu ... enam
how should I modify the for-in loop to retrieve my array value?