6 Over the Moon


#1

Hello,

I can't figure out what I'm doing wrong. I'm getting 'SyntaxError: expected expression, got '}':

// create a constructor for the StaffMember class
function StaffMember(name, discountPercent) {
this.name = name,
this.discountPercent = discountPercent,
},

var sally = new StaffMember("Sally",5);
var bob = new StaffMember("Bob",10);

//Create a StaffMember for yourself called me
var me = new StaffMember("me",20);


#2

Hi this part remove the , after the }

function StaffMember(name, discountPercent) {
this.name = name,
this.discountPercent = discountPercent,
}, <=== this one

And try to put ; after this.name = name instead of , do the same for discountPercent