Whats wrong with my code? 12/17


#1


Whats wrong with my code?

var object1 = {
    name:'Object';
    size:'Big';
};

var object2 = {
    height = 10;
    width = 10;
};

var object3 = {
    age = 4;
    name = 'LOL';
};

error code: SyntaxError: missing } after property list


#2

I figured out whats worong


#3

var myOwnobject= new Object();
myOwnobject.name="nikhil";
whats wrong with this??
its showing error create your object


#4

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