How are object properties assigned?

Asked: Apr 14, 2023

Properties are assigned to objects in the following way -
obj["class"] = 12;
or
obj.class = 12;

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!