Skip to content

Commit f4219d4

Browse files
committed
name is now correctly housed in GameObject
1 parent 1eb55ed commit f4219d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assignments/prototypes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
/*
1212
=== GameObject ===
1313
* createdAt
14+
* name
1415
* dimensions (These represent the character's size in the video game)
15-
* 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.'
1617
*/
1718

1819
/*
1920
=== CharacterStats ===
2021
* healthPoints
21-
* name
2222
* takeDamage() // prototype method -> returns the string '<object name> took damage.'
2323
* should inherit destroy() from GameObject's prototype
2424
*/

0 commit comments

Comments
 (0)