var employees = [
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter","lastName": "Jones"}
];
employees[0].firstName = "Gilbert";
employees[0]["firstName"] = "Gilbert";
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter","lastName": "Jones"}
];
employees[0].firstName = "Gilbert";
employees[0]["firstName"] = "Gilbert";
No comments:
Post a Comment