Skip to content

Conversation

@oddswop
Copy link

@oddswop oddswop commented Dec 12, 2016

No description provided.

Copy link
Owner

@joshdmiller joshdmiller left a comment

Choose a reason for hiding this comment

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

Overall, it looks really good! 👍

I have one comment you should take a look at.

const message = 'hello';
expected = message;
actual = human.speak( message );
test.equal( actual, expected, 'should speak what it is asked to speak' );
Copy link
Owner

Choose a reason for hiding this comment

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

This doesn't seem quite right. Why are you passing in the message as an argument, but not using it in your function?


Reptile.prototype = new Animal(); // inherit Animal properties if you get created
Reptile.prototype.constructor = Reptile; // Make a valid reptile which is a new animal
Reptile.SOUND = 'hissss';

Choose a reason for hiding this comment

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

Nice. I couldn't think of a good reptile sound.

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.

3 participants