There was an error while loading. Please reload this page.
1 parent 1eb55ed commit f4219d4Copy full SHA for f4219d4
assignments/prototypes.js
@@ -11,14 +11,14 @@
11
/*
12
=== GameObject ===
13
* createdAt
14
+ * name
15
* dimensions (These represent the character's size in the video game)
- * destroy() // prototype method -> returns the string: 'Object was removed from the game.'
16
+ * destroy() // prototype method that returns: '{this.name} was removed from the game.'
17
*/
18
19
20
=== CharacterStats ===
21
* healthPoints
- * name
22
* takeDamage() // prototype method -> returns the string '<object name> took damage.'
23
* should inherit destroy() from GameObject's prototype
24
0 commit comments