Syntax problmz


var myOwnObject={
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?


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