Skip to content

Commit fcb656d

Browse files
committed
Created GameObject fin prototype.js
1 parent 1fa505c commit fcb656d

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/prototype.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@
4949
hamsterHuey.destroy(); // returns 'Game object was removed from the game.'
5050
*/
5151

52+
function GameObject(options) {
53+
this.createdAt = options.createdAt;
54+
this.dimensions = options.dimensions;
55+
}
56+
57+
GameObject.prototype.destroy = function () {
58+
return 'Game object was removed from the game.';
59+
}
60+
5261
/* eslint-disable no-undef */
5362

5463
module.exports = {

src/recursion.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const nFactorial = (n) => {
2020
const checkMatchingLeaves = (obj) => {
2121
// return true if every property on `obj` is the same
2222
// otherwise return false
23-
24-
2523
};
2624

2725

0 commit comments

Comments
 (0)