Syntax problmz


#1

var myOwnObject={
color:"green"
smell:"money"
type: "get rich or die trying"
};

i'm getting SyntaxError:Unexpected Identifier

first of all, what is an identifier? is it " or ' or ;?

second of all, I don't see whats wrong with my object, do you?


#2

this is the correct syntax for the object literal notation

var myObj = {
    //key1 : value1,
    //key2 : value2
};

you are missing the comma after each key-value pair. only the last element must not have a comma after