SyntaxError: missing : after property id


#1

var objectName = {'Friends'};
{
var objectName = new Name();
};

whats wrong here


#2

Hi this one

var objectName = {'Friends'};
{

Should be like that

var friend = {

}

And that one

var objectName = new Name();
};

Just Name(); should be Object(); like that

var objectName = new Object();
};

And they are both a way to create a object. In contact list you should have only one.