Skip to content

Commit fe301b1

Browse files
cmoore4oscmoore4os
authored andcommitted
passed prototype.js
1 parent a223e00 commit fe301b1

3 files changed

Lines changed: 6 additions & 87 deletions

File tree

‎src/pro.txt‎

Lines changed: 0 additions & 83 deletions
This file was deleted.

‎src/prototype.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
hamsterHuey.destroy(); // returns 'Game object was removed from the game.'
5050
*/
5151
function GameObject(options) {
52-
this.createdBy = options.createdBy;
53-
this.dimension = options.dimension;
52+
this.createdAt = options.createdAt;
53+
this.dimensions = options.dimensions;
5454
}
5555
GameObject.prototype.destroy = function () {
56-
return 'Game object was removed from the game';
56+
return 'Game object was removed from the game.';
5757
};
5858

5959
function NPC(options) {
@@ -70,7 +70,7 @@ function Humanoid(options) {
7070
NPC.call(this, options);
7171
this.faction = options.faction;
7272
this.language = options.language;
73-
this.weapon = options.weapon;
73+
this.weapons = options.weapons;
7474
}
7575
Humanoid.prototype = Object.create(NPC.prototype);
7676
Humanoid.prototype.greet = function () {

‎src/this.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
class User {
88
constructor(options) {
9+
this.username = options.username;
10+
this.password = options.password;
911
// set a username and password property on the user object that is created
1012
}
1113
// create a method on the User class called `checkPassword`

0 commit comments

Comments
 (0)