JAVASCRIPT Questions and Answers

How are object properties assigned?

Properties are assigned to objects in the following way

obj[“class”] = 12;

or

obj.class = 12;