JS Assignment 13: Intro to Classes in Javascript
ReinierB (17)

I have tried so many version of getting the right answer but is not passing! I think the questions tend to be tricky that looks so simple or maybe they are not so well put. I am having an error.
It is ecpeted to be true " false. can somoen help here with some hints?
function ClassTwo(name, pw, mail){
// Exercise Two: Now that you have created your own class,
// you will create a class with a method on it.
// In this class create 4 properties: username, password, email, and checkPassword.
// Set the value of username to name,
// Set the value of password to pw,
// Set the value of email to mail
// Set the value of checkPassword to a function.
// The checkPassword function takes a string as it's only argument.
// Using the 'this' keyword check to see if the password on the class is the same as
// the string being passed in as the parameter. Return true or false.

this.username = name;
this.password = pw;
this.email = mail;
this.checkPassword = function() {
this.password === this.checkPassword;
return true;

You are viewing a single comment. View All
ReinierB (17)

@KevinFisher what exserice is this one? what number?