Answer:
obj["age"] = 17;
//or
obj.age = 17;
//or
obj.age = 17;
Previous Question | Next Question |
How do you create a new object in JavaScript? | What’s a way to append a value to an array? |
Previous Question | Next Question |
How do you create a new object in JavaScript? | What’s a way to append a value to an array? |