Expert Developer JavaScript Question:
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;
Previous Question | Next Question |
How to find operating system in the client machine using JavaScript? | What are JavaScript types? |