We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fca337 commit 7801799Copy full SHA for 7801799
1 file changed
assignments/objects.js
@@ -117,9 +117,10 @@ console.log(parent.name);
117
// Log the child's age
118
console.log(parent.child.name);
119
// Log the name and age of the grandchild
120
-
+console.log(parent.child.grandchild.name, parent.child.grandchild.age)
121
// Have the parent speak
122
+parent.speak();
123
// Have the child speak
124
+parent.child.speak();
125
// Have the grandchild speak
126
+parent.child.grandchild.speak();
0 commit comments