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 categories = [
2 {"1":"Category 1"},
3 {"2":"Category 2"},
4 {"3":"Category 3"},
5 {"4":"Category 4"}
6];