Skip to content

Commit 7b5b03b

Browse files
Update Q 8. Freddie is not a child of Chameleon
Freddie is an instance of Chameleon and not a child.
1 parent fabdf44 commit 7b5b03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ console.log(freddie.colorChange('orange'));
299299

300300
#### Answer: D
301301

302-
The `colorChange` function is static. Static methods are designed to live only on the constructor in which they are created, and cannot be called on class objects. Since `freddie` is an object of class Chameleon, the function cannot be called upon it, and not available on the `freddie` instance: a `TypeError` is thrown.
302+
The `colorChange` function is static. Static methods are designed to live only on the constructor in which they are created, and cannot be passed down to any children or called upon class instances. Since `freddie` is an instance of class Chameleon, the function cannot be called upon it. A `TypeError` is thrown.
303303

304304
</p>
305305
</details>

0 commit comments

Comments
 (0)