An object with multiple properties was constructed in the previous task. You will now see how to retrieve those
properties’ values. Here’s one instance:
let Dog = {
name: "BullDog",
numLegs: 4
};
console.log(Dog.name);
To get the value of Aflac, use dot notation on the object name, Dog, followed by the property name, name.
Print the dog object’s two properties to your console.
Note: We welcome your feedback at Easy coding School. Please don’t hesitate to share your suggestions or any issues you might have with the article!