Why there error : james has married property with boolean value?


#1

var james = {
// add properties to this object!
job : "programmer",
married : "false"
};

function Person(job, married) {
this.job = job;
this.married = married;
}
var gabby = new Person("student","true");


#2

It's because in this line

You have true in quotes but true doesn't go in quotes because when you put true you put down what the person is like when you put it without the quotes then it should say that she is a student and make sure to erase the quotes around false also.

Hope that helped