Skip to content

completed this.js - #1

Open
Conary36 wants to merge 2 commits into
masterfrom
Conary-Beckford
Open

Conary36 wants to merge 2 commits into
masterfrom
Conary-Beckford

Conversation

@Conary36

@Conary36 Conary36 commented Oct 9, 2019

Copy link
Copy Markdown
Owner

No description provided.

Comment thread assignments/prototypes.js
}
CharacterStats.prototype = Object.create (GameObject.prototype);
CharacterStats.prototype.takeDamage = function(){
console.log(`${this.name} took damage`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love seeing that you are checking your work before you return it. Shows that you care about quality.

Comment thread assignments/prototypes.js
this.language = human.language;
}
Humanoid.prototype = Object.create(CharacterStats.prototype);
Humanoid.prototype.greet = function(greeting){

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you have a greeting parameter but never called it? Maybe it could have just been left out?

@ghost

ghost commented Oct 11, 2019

Copy link
Copy Markdown

Great job! The only thing I have to really comment about is making sure you don't have unnecessary parameters. It can cause confusion. In this case not so much but once we get into components and react it could get a little hairy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant