Object II - 1/30. It doesn't work


#1

Why my code is wrong please, i don't understand ?

var jules = {
job: "developpeur",
fiance: false
};

function Personne(job, fiance) {
this.job = job;
this.fiance = fiance;
};

var margaux=new Person("etudiant",true);

Thanks a lot !


#2

Your function name is Personne and then you're calling Person.

So calling:

var margaux = new Personne ("etudiant", true);

Should work


#3

It works ! Thanks a lot

Cheers