Skip to content

Commit 7801799

Browse files
committed
Done!
1 parent 8fca337 commit 7801799

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

assignments/objects.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ console.log(parent.name);
117117
// Log the child's age
118118
console.log(parent.child.name);
119119
// Log the name and age of the grandchild
120-
120+
console.log(parent.child.grandchild.name, parent.child.grandchild.age)
121121
// Have the parent speak
122-
122+
parent.speak();
123123
// Have the child speak
124-
124+
parent.child.speak();
125125
// Have the grandchild speak
126+
parent.child.grandchild.speak();

0 commit comments

Comments
 (0)