We declare an object called dog, with two fields: age and name: To change the value of the age field to 6 , we need to perform:
We declare an object called dog, with two fields: age and name: let dog = { age: 5. name: "Axel }; To change the value of…