1 parent df7977f commit 037a73fCopy full SHA for 037a73f
1 file changed
assignments/objects.js
@@ -144,7 +144,7 @@ console.log(parent.child.age)
144
console.log(parent.child.grandchild.name,parent.child.grandchild.age)
145
146
// Have the parent speak
147
-console.log(this.speaks+this.name)
+console.log(`${parent.speaks} ${parent.name}`)
148
149
// Have the child speak
150
console.log (`${parent.child.speaks+parent.child.name} !`)
0 commit comments