1var myArray = {id1: 100, id2: 200, "tag with spaces": 300};
2myArray.id3 = 400;
3myArray["id4"] = 500;
4
5for (var key in myArray) {
6 console.log("key " + key + " has value " + myArray[key]);
7}
1var myArray = {id1: 100, id2: 200, "tag with spaces": 300};
2myArray.id3 = 400;
3myArray["id4"] = 500;
4