4. Can I see your reffernces?


#1

I don't know what i'm wrong.
what i missed?
please help me

var james = {
job: "programmer",
married: false,
sayJob: function() {
// complete this method
console.log("Hi, I work as a" + this.job);
};
};

// james' first job
james.sayJob();

// change james' job to "super programmer" here
james.job = "super programmer";

// james' second job
james.sayJob();

it print out "SyntaxError: Unexpected token "


#2

The semi-colon is not expected in object literal syntax. Just drop the ; after the closing brace.


#3

thank you very much, it works.