// given const obj = { key1: value1, key2: value2 }; // add pair obj["key3"] = value3; obj.key4 = value4;