Skip to content

JavaScript II Samuel Kim #41

Closed
IllSmithDa wants to merge 6 commits intobloominstituteoftechnology:masterfrom
IllSmithDa:master
Closed

JavaScript II Samuel Kim #41
IllSmithDa wants to merge 6 commits intobloominstituteoftechnology:masterfrom
IllSmithDa:master

Conversation

@IllSmithDa
Copy link
Copy Markdown

No description provided.

// return `true` if they match, otherwise return `false`
checkPassword(str) {
if (this.password === str) {
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 do this with one line return this.password === str

Copy link
Copy Markdown

@sperrye sperrye left a comment

Choose a reason for hiding this comment

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

Good 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