push to a dictionary js code example
Example 1: javascript push dictionary into array
var dict = []; // create an empty array
dict.push({
key: "keyName",
value: "the value"
});
Example 2: javascript add to a dictionary
obj["key3"] = "value3";