We declare an object called dog
, with two fields: age
and name
:
let dog = { age: 5. name: "Axel };
To change the value of the age
field to 6
, we need to perform:
dog{age} = 6;
age of dog = 6;
dog.age = 6;
dog[age] = 6;
Answers Explanation & Hints:
To change the value of the age field to 6 in the given object, you would use the syntax: dog.age = 6; This will update the age field of the |