Skip to content

Commit 33e450f

Browse files
committed
completed the stretch
1 parent 2e6350e commit 33e450f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎assignments/objects.js‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,11 @@ console.log(parent.child.age);
108108
// Log the name and age of the grandchild
109109
console.log(parent.child.grandchild.name,parent.child.grandchild.age);
110110
// Have the parent speak
111-
112-
111+
parent.speak = letSpeak;
112+
console.log(parent.speak());
113113
// Have the child speak
114-
115-
// Have the grandchild speak
114+
parent.child.speak = letSpeak;
115+
console.log(parent.child.speak());
116+
// Have the grandchild speak
117+
parent.child.grandchild.speak = letSpeak;
118+
console.log(parent.child.grandchild.speak());

0 commit comments

Comments
 (0)