4. Can I see your reffernces?


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

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

// james' second job

it print out "SyntaxError: Unexpected token "


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


thank you very much, it works.