1var data = {
2 'PropertyA': 1,
3 'PropertyB': 2,
4 'PropertyC': 3
5};
6
7data["PropertyD"] = 4;
8
9// dialog box with 4 in it
10alert(data.PropertyD);
11alert(data["PropertyD"]);
1
2var myDog = {
3 "name": "Coder",
4 "legs": 4,
5 "tails": 1,
6 "friends": ["freeCodeCamp Campers"]
7};
8
9// Update the name value
10myDog.name = "Happy Coder";
1$.extend(true, skillet.person, {
2 name: {
3 first: 'updated'
4 },
5 birthday: {
6 day: 'updated',
7 year: 'updated'
8 }
9});
10