How do you assign object properties?

Q

How do you assign object properties?

✍: Guest

A

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

2010-12-21, 2883👍, 0💬