Why my code is not working?



Oops, try again. There was a problem with your syntax.

  var james = {
    // add properties to this object!
     married:false ;

function Person(job, married) {
    this.job = job;
    this.married = married;
properties are defined within the }

// create a "gabby" object using the Person constructor!
var gabby = new person("student", true);


properties are defined within the

this should be a comment? and then make sure } is outside the comment


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.