Skip to content

class, recursion, this complete; still need prototype#39

Closed
PotatoSalads wants to merge 1 commit into
bloominstituteoftechnology:masterfrom
PotatoSalads:master
Closed

class, recursion, this complete; still need prototype#39
PotatoSalads wants to merge 1 commit into
bloominstituteoftechnology:masterfrom
PotatoSalads:master

Conversation

@PotatoSalads

Copy link
Copy Markdown

Prototype still needs finishing
Rest are complete and pass tests

Comment thread src/class.js
}
comparePasswords(checkPassword) {
if (checkPassword === this.password) {
return true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can also return checkPassword === this.password

Comment thread src/class.js
this.age = options.age;
}
growOlder(newAge) {
return this.age + 1;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There is an operator ++ that increments by one.

@sperrye sperrye left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great work

@sperrye sperrye closed this Oct 19, 2017
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