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