Andre Poyser

@poysed2code (4)
Intro to Classes JS assignment 13
posted to Share by poysed2code

@SepidehLambda thanks for your response. I figured it out though.
this.password = pw,
this.email = mail,
this.checkPassword = function(astring){
return this.password === astring;
}

Intro to Classes JS assignment 13
posted to Share by poysed2code

@itbarsoum thanks for responding, noted but not very helpful

Intro to Classes JS assignment 13
posted to Share by poysed2code

@ArchieMaclean Yes thanks I'm working on another as we speak. has to do with using callbacks with .forEach and .map

Intro to Classes JS assignment 13
posted to Share by poysed2code

@ArchieMaclean thanks for your response I eventually figured it out here it is:
this.username = name,
this.password = pw,
this.email =mail,
this.checkPassword = function(newPassword){
return this.password === newPassword;
}

Intro to Classes JS assignment 13
posted to Share by poysed2code

@ArchieMaclean here it is :
this.checkPassword = function(astring){
if(this.password === astring){
return true;
} else if(this.passsword !== astring){
return false;
};
}

Intro to Classes JS assignment 13
posted to Share by poysed2code

@ArchieMaclean tried this but it didn't work. I used an if else statement but I'm not sure if this can be done

Introduction to classes
posted to Ask by poysed2code

@a5rocks I will let you know the outcome

Introduction to classes
posted to Ask by poysed2code

@SPQR I am not sure how to do that in repl.it