Expert Developer JavaScript Question:
Download Job Interview Questions and Answers PDF
How are object properties assigned?
Answer:
Properties are assigned to objects in the following way -
obj["class"] = 12;
or
obj.class = 12;
obj["class"] = 12;
or
obj.class = 12;
Download Expert JavaScript Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
How to find operating system in the client machine using JavaScript? | What are JavaScript types? |