Expert JavaScript Developer Question:
How to assign object properties?
Answer:
obj["age"] = 17;
//or
obj.age = 17;
//or
obj.age = 17;
Previous Question | Next Question |
Name numeric constants representing max, min values? | How to create a new object in JavaScript? |