Skip to content

Conversation

@Solshuk
Copy link

@Solshuk Solshuk commented Mar 22, 2018

No description provided.

@sulemc
Copy link

sulemc commented Mar 24, 2018

Nice work Mack.

checkPassword.apply(me, ['correcthorsebatterystaple']);

// .bind
checkPassword.bind(me, 'correcthorsebatterystaple')();
Copy link

Choose a reason for hiding this comment

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

remember on .bind that you have to set it to a new variable
for example:
const bind = checkPassword.bind(blah)

growOlder() {
const updatedAge = this.age + 1;
return updatedAge;
}
Copy link

Choose a reason for hiding this comment

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

The directions weren't clear on this one but it should actually be
this.age = this.age + 1
so that the Animal actually grows older.

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