How do you assign object properties?

Q

How do you assign object properties?

✍: Guest

A

obj["age"] = 17 or obj.age = 17.

2008-10-28, 4468👍, 0💬