What's wrong? 12/17


#1

var object1 = {
object1.name: "aaa",
object1.age: 44
};
var object2 = {
object2.name: "bba",
object2.age: 55
};

var object3 = {};
var object3 = new Object();

object3.name = "www";
object3.age = 11;


#2

This line is object literal creation and correct syntax :

var object1 = {
name: "aaa",
age: 44
};

#3

var object1 = {
name : "cheeseburger",
description : "yummy"
};
var object2 = {
name : "pizza"
description : "Italian food. Yum."
};
var object3 = {
name : "ice cream",
description : "Such cold. Much lick"
};

SyntaxError: Unexpected identifier

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

How do I fix this @pointphoton


#4

missing , here:

var object2 = {
    name : "pizza"