Skip to content

Commit 51ef698

Browse files
authored
Merge pull request lydiahallie#571 from rajkapadia247/master
Update Q8. Freddie is not a child of Chameleon
2 parents f252b15 + 7b5b03b commit 51ef698

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 passed down to any children. Since `freddie` is a child, the function is not passed down, 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)