Skip to content

Jason Nuhn JS II Homework#34

Closed
JasonNuhn wants to merge 3 commits into
bloominstituteoftechnology:masterfrom
JasonNuhn:master
Closed

Jason Nuhn JS II Homework#34
JasonNuhn wants to merge 3 commits into
bloominstituteoftechnology:masterfrom
JasonNuhn:master

Conversation

@JasonNuhn

Copy link
Copy Markdown

Comment thread src/this.js
// create a method on the User class called `checkPassword`
checkPassword(passwordCheck) {
if (this.password === passwordCheck) {
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 === passwordCheck

Comment thread src/this.js
// note that we use the `function` keyword and not `=>`
// note that we use the `function` keyw ord and not `=>`
if (this.password === passwordToCompare) {
return true ? false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

return this.password === passwordToCompare

@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 job

@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