Skip to content

Conversation

@jayyargh
Copy link

No description provided.

Copy link

@kiachoi kiachoi left a comment

Choose a reason for hiding this comment

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

Good job on this project! I left some comments and feedback that you can take a look at. I hope understanding the this keyword was a little more clear throughout this assignment. I can see that you are unsure about a couple things so just let me know or ask the channel! There are plenty of people who are more than willing to help ya - especially Austin! 😂

/*
Object oriented design is commonly used in video games. For this part of the assignment
you will be implementing several classes with their correct inheritance heirarchy.
you will be implementing several classes with their correct inheritance hierarchy.
Copy link

Choose a reason for hiding this comment

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

Sweet typo catch!

// this method should take in a string and compare it to the object's password property
// return `true` if they match, otherwise return `false`
checkPassword(password) {
return this.password === pass;
Copy link

Choose a reason for hiding this comment

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

This function did not work because you are passing password in your parameters. The code should look something like this..
checkPassword(pass) { return this.password === pass; }

If you notice, this.password will be the password that was passed when creating the User class and pass is the password that is being checked!

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.

2 participants