There are two possible solutions to add new properties to an object. Let's take a simple object to explain these solutions.
var object = { key1: value1, key2: value2, };
object.key3 = "value3";
obj["key3"] = "value3";