1var myObject = { boo: true, baa: 5 };
2console.log(myObject);
3// expected output:
4// { boo: true, baa:5}
5
6myObject.boo = false;
7myObject.baa++;
8console.log(myObject);
9// expected output:
10// { boo: false, baa:6}
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";
1var object = { boo:true, baa:5 };
2console.log(object);
3function change() {
4 object.boo = false;
5 object.baa++;
6};
7change();
8console.log(object);
9//Hope this helps!