Hello Forums,
How do I loop through an associative array
Code Java:var myArray = [{'a': 'value1'}, {'b': 'value2'}, {'c':'value3'}]; for (var i = 0; i < myArray.length; i++){ document.write(myArray[i]); }
This is giving me [object Object][object Object][object Object]
I want the result to be :
a -value 1
b-value 2
c-value 3
Thanks



Reply With Quote
Bookmarks