What's wrong 12/17?


#1

var object1 = {
name: "Peter",
age: 17,
lives: "In Kvidinge",
parents: "Kim, and Yvonne",
parentsage: 52, 46
};

var object2 = {
sister: "Emma",
age2: 14,
lives: "Kvidinge"
};

var object3 = {
that: 24,
it: "So",
kill: "Now"
};


#2

It gives me a SyntaxError: Unexpected token }


#3

I fixed it, it should be parentsage: (52, 46) instead of parentsage: 52, 46


#4

Anyway this is not a good idea what did you try to do there? Using the comma operator means that you chain to statements and use the value of the last one so here parentsage would be 46. Better use an array or object if you want more than one value.